Table of Contents

Class StateInfoProvider

Namespace
CMS.Globalization
Assembly
CMS.Globalization.dll

Class providing StateInfo management.

[ProviderInterface(typeof(IStateInfoProvider))]
public class StateInfoProvider : AbstractInfoProvider<StateInfo, StateInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<StateInfo>, IInfoByGuidProvider<StateInfo>, IBulkInfoProvider<StateInfo>, IStateInfoProvider, IInfoProvider<StateInfo>, IInfoByIdProvider<StateInfo>, IInfoByNameProvider<StateInfo>
Inheritance
object
StateInfoProvider
Implements
Inherited Members
Extension Methods

Constructors

StateInfoProvider()

Constructor.

public StateInfoProvider()

Methods

ClearHashtables(bool)

Clear hashtables.

protected override void ClearHashtables(bool logTasks)

Parameters

logTasks bool

If true, web farm tasks are logged

Delete(StateInfo)

Deletes the info object from the underlying data store.

public override void Delete(StateInfo info)

Parameters

info StateInfo

Info object to be deleted.

Exceptions

ArgumentNullException

Thrown when info is null.

GetStateInfoByCode(string)

Returns the StateInfo structure for the specified state code.

public static StateInfo GetStateInfoByCode(string stateCode)

Parameters

stateCode string

Code of the state

Returns

StateInfo

GetStateInfoByCodeInternal(string)

Returns the StateInfo structure for the specified state code.

protected virtual StateInfo GetStateInfoByCodeInternal(string stateCode)

Parameters

stateCode string

Code of the state

Returns

StateInfo

Set(StateInfo)

Inserts or updates the info object in the underlying data store.

public override void Set(StateInfo info)

Parameters

info StateInfo

Info object to be inserted or updated.

Exceptions

ArgumentNullException

Thrown when info is null.