Class CountryInfoProvider
- Namespace
- CMS.Globalization
- Assembly
- CMS.Globalization.dll
Class providing management of the countries.
[ProviderInterface(typeof(ICountryInfoProvider))]
public class CountryInfoProvider : AbstractInfoProvider<CountryInfo, CountryInfoProvider>, IInfoProvider, ICustomizableProvider, IBulkOperationProvider, IWebFarmProvider, IInfoValidator<CountryInfo>, IInfoByGuidProvider<CountryInfo>, IBulkInfoProvider<CountryInfo>, ICountryInfoProvider, IInfoProvider<CountryInfo>, IInfoByIdProvider<CountryInfo>, IInfoByNameProvider<CountryInfo>
- Inheritance
-
objectCountryInfoProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
CountryInfoProvider()
Constructor.
public CountryInfoProvider()
Methods
ClearHashtables(bool)
Clear hashtables.
protected override void ClearHashtables(bool logTasks)
Parameters
logTasksboolIf true, web farm tasks are logged
Delete(CountryInfo)
Deletes the info object from the underlying data store.
public override void Delete(CountryInfo info)
Parameters
infoCountryInfoInfo object to be deleted.
Exceptions
- ArgumentNullException
Thrown when
infois null.
GetCountriesWithStates()
Returns DataSet with all countries which have some states.
public static InfoDataSet<CountryInfo> GetCountriesWithStates()
Returns
GetCountriesWithStatesInternal()
Returns DataSet with all countries which have some states.
protected virtual InfoDataSet<CountryInfo> GetCountriesWithStatesInternal()
Returns
GetCountryInfoByCode(string)
Returns the CountryInfo structure for the specified country code.
public static CountryInfo GetCountryInfoByCode(string countryCode)
Parameters
countryCodestringCode of the country. Two- and three- letter codes are supported.
Returns
GetCountryInfoByCodeInternal(string)
Returns the CountryInfo structure for the specified country code.
protected virtual CountryInfo GetCountryInfoByCodeInternal(string countryCode)
Parameters
countryCodestringCode of the country. Two- and three- letter codes are supported.
Returns
Set(CountryInfo)
Inserts or updates the info object in the underlying data store.
public override void Set(CountryInfo info)
Parameters
infoCountryInfoInfo object to be inserted or updated.
Exceptions
- ArgumentNullException
Thrown when
infois null.