Class CultureLoadOption

Defines a culture load option.

Inheritance
object
CultureLoadOption
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse

public class CultureLoadOption : ICultureLoadOption, ILoadOption

Constructors

CultureLoadOption()

Initializes a new instance of the CultureLoadOption class. Defaults to LoadOption.None .

Declaration
RequestResponse

public CultureLoadOption()

CultureLoadOption(params CultureInfo[])

Initializes a new instance of the CultureLoadOption class.

Declaration
RequestResponse

public CultureLoadOption(params CultureInfo[] cultures)
Parameters
TypeNameDescription
CultureInfocultures

Cultures.

CultureLoadOption(IEnumerable<CultureInfo>)

Initializes a new instance of the CultureLoadOption class.

Declaration
RequestResponse

public CultureLoadOption(IEnumerable<CultureInfo> cultures)
Parameters
TypeNameDescription
IEnumerable<>CultureInfocultures

Cultures.

CultureLoadOption(IEnumerable<string>)

Initializes a new instance of the CultureLoadOption class.

Declaration
RequestResponse

public CultureLoadOption(IEnumerable<string> cultures)
Parameters
TypeNameDescription
IEnumerable<>stringcultures

Cultures by locale identifier (LCID).

CultureLoadOption(params string[])

Initializes a new instance of the CultureLoadOption class.

Declaration
RequestResponse

public CultureLoadOption(params string[] cultures)
Parameters
TypeNameDescription
stringcultures

Cultures by locale identifier (LCID).

Properties

All

Gets all cultures registered in Content Hub.

Declaration
RequestResponse

public static ICultureLoadOption All { get; }
Property Value
TypeDescription
ICultureLoadOption

Cultures

Gets or sets a list of cultures names that need to be loaded. This is only useful when LoadOption is Custom.

Declaration
RequestResponse

public CultureInfo[] Cultures { get; set; }
Property Value
TypeDescription
CultureInfo

Default

Gets the default culture in Content Hub.

Declaration
RequestResponse

public static ICultureLoadOption Default { get; }
Property Value
TypeDescription
ICultureLoadOption

LoadOption

Gets or sets the load option.

Declaration
RequestResponse

public LoadOption LoadOption { get; set; }
Property Value
TypeDescription
LoadOption

None

Gets no cultures.

Declaration
RequestResponse

public static ICultureLoadOption None { get; }
Property Value
TypeDescription
ICultureLoadOption

Methods

DeepClone()

Creates a deep clone of this instance.

Declaration
RequestResponse

public ICultureLoadOption DeepClone()
Returns

DeepEquals(ICultureLoadOption)

Checks if this instance of ICultureLoadOption is equal to other.

Declaration
RequestResponse

public bool DeepEquals(ICultureLoadOption other)
Parameters
TypeNameDescription
ICultureLoadOptionother

Teh ICultureLoadOption.

Returns
TypeDescription
bool

langword_csharp_True if the instances are equal; otherwise langword_csharp_False.

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,