• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

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 Source

CachedCountryList(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 Source

CacheKey(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.

| Improve this Doc View Source

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.

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS