Class CultureLoadOption
Defines a culture load option.
Inheritance
Namespace: StylelabsStylelabs.MStylelabs.M.FrameworkStylelabs.M.Framework.EssentialsLoadOptions
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
CultureLoadOption()
Initializes a new instance of the CultureLoadOption class. Defaults to .
Declaration
CultureLoadOption(params CultureInfo[])
Initializes a new instance of the CultureLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | cultures |
Cultures. |
CultureLoadOption(IEnumerable<CultureInfo>)
Initializes a new instance of the CultureLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>CultureInfo | cultures |
Cultures. |
CultureLoadOption(IEnumerable<string>)
Initializes a new instance of the CultureLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>string | cultures |
Cultures by locale identifier (LCID). |
CultureLoadOption(params string[])
Initializes a new instance of the CultureLoadOption class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | cultures |
Cultures by locale identifier (LCID). |
Properties
All
Gets all cultures registered in Content Hub.
Declaration
Property Value
| Type | Description |
|---|---|
| ICultureLoadOption |
Cultures
Gets or sets a list of cultures names that need to be loaded. This is only useful when LoadOption is Custom.
Declaration
Property Value
| Type | Description |
|---|---|
| CultureInfo |
Default
Gets the default culture in Content Hub.
Declaration
Property Value
| Type | Description |
|---|---|
| ICultureLoadOption |
LoadOption
Gets or sets the load option.
Declaration
Property Value
| Type | Description |
|---|---|
| LoadOption |
None
Gets no cultures.
Declaration
Property Value
| Type | Description |
|---|---|
| ICultureLoadOption |
Methods
DeepClone()
Creates a deep clone of this instance.
Declaration
Returns
| Type | Description |
|---|---|
| ICultureLoadOption |
The ICultureLoadOption. |
DeepEquals(ICultureLoadOption)
Checks if this instance of ICultureLoadOption is equal to other.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| ICultureLoadOption | other |
Teh ICultureLoadOption. |
Returns
| Type | Description |
|---|---|
| bool |
langword_csharp_True if the instances are equal; otherwise langword_csharp_False. |