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
-
objectStateInfoProvider
- Implements
- Inherited Members
-
AbstractInfoProvider<StateInfo, StateInfoProvider, ObjectQuery<StateInfo>>.CreateInfo(DataRow, bool)
- Extension Methods
Constructors
StateInfoProvider()
Constructor.
public StateInfoProvider()
Methods
ClearHashtables(bool)
Clear hashtables.
protected override void ClearHashtables(bool logTasks)
Parameters
logTasks
boolIf 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
StateInfoInfo 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
stringCode of the state
Returns
GetStateInfoByCodeInternal(string)
Returns the StateInfo structure for the specified state code.
protected virtual StateInfo GetStateInfoByCodeInternal(string stateCode)
Parameters
stateCode
stringCode of the state
Returns
Set(StateInfo)
Inserts or updates the info
object in the underlying data store.
public override void Set(StateInfo info)
Parameters
info
StateInfoInfo object to be inserted or updated.
Exceptions
- ArgumentNullException
Thrown when
info
is null.