Class CachedCountryList
Provides access to country list with caching.
Inheritance
System.Object
CachedCountryList
Namespace: DotNetNuke.Common.Lists
Assembly: DotNetNuke.dll
Syntax
public class CachedCountryList : Dictionary<string, CachedCountryList.Country>
Constructors
| Improve this Doc View SourceCachedCountryList(String)
Initializes a new instance of the CachedCountryList class.
Declaration
public CachedCountryList(string locale)
Parameters
Type | Name | Description |
---|---|---|
System.String | locale | This value is not currently used. |
Methods
| Improve this Doc View SourceCacheKey(String)
Gets the cache key for a country list in the specified culture.
Declaration
public static string CacheKey(string locale)
Parameters
Type | Name | Description |
---|---|---|
System.String | locale | The locale to use for the country names. |
Returns
Type | Description |
---|---|
System.String | The cache key string. |
GetCountryList(String)
Gets the country list.
Declaration
public static CachedCountryList GetCountryList(string locale)
Parameters
Type | Name | Description |
---|---|---|
System.String | locale | Which locale to use for the country names. |
Returns
Type | Description |
---|---|
CachedCountryList | A cached list of countries. |