Class CultureSensitiveProperty
A culture sensitive property.
Inheritance
object
CultureSensitiveProperty
Implements
Inherited Members
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsBase
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
CultureSensitiveProperty(string, Type, ISet, IDictionary<CultureInfo, object>)
Initializes a new instance of the CultureSensitiveProperty class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the property. |
| Type | type | The type of the property. |
| ISet<>CultureInfo | loadedCultures | The cultures to load. |
| IDictionary<, >CultureInfoobject | values | The values of the property. |
CultureSensitiveProperty(string, Type, ISet)
Initializes a new instance of the CultureSensitiveProperty class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name of the property. |
| Type | type | The type of the property. |
| ISet<>CultureInfo | loadedCultures | The cultures to load. |
Properties
IsDirty
Gets a value indicating whether the property is dirty or not.
Declaration
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
GetCultures()
Gets all cultures that the property supports. These are always equal to the cultures the IEntity was loaded with.
Declaration
Returns
| Type | Description |
|---|---|
| IList<>CultureInfo | The cultures (never null). |
GetDirtyCultures()
Gets all cultures that have dirty values.
Declaration
Returns
| Type | Description |
|---|---|
| IList<>CultureInfo | A list of cultures. |
GetTypeName()
Gets the type name of the subtype.
Declaration
Returns
| Type | Description |
|---|---|
| string | Name of the subtype. |
Overrides
GetValue(CultureInfo)
Gets a value.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | The culture. |
Returns
| Type | Description |
|---|---|
| object | The property value. |
GetValue(CultureInfo)
Gets the value for a specific culture.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | Culture of the value. |
Returns
| Type | Description |
|---|---|
| T | The value or null if it has no value for this culture. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the value (preferable nullable). |
GetValues()
Gets all values per culture in a non generic way.
Declaration
Returns
| Type | Description |
|---|---|
| IDictionary<, >CultureInfoobject | Property values. |
Remarks
This method only returns the values in the cultures the IEntity was loaded in.
GetValues()
Gets all values per culture.
Declaration
Returns
| Type | Description |
|---|---|
| IDictionary<, >CultureInfo | All property values. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the value (preferable nullable). |
Remarks
This method only returns the values in the cultures the IEntity was loaded in.
GetValues(IEnumerable)
Gets all values in the requested cultures.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<>CultureInfo | cultures | Cultures to include. |
Returns
| Type | Description |
|---|---|
| IDictionary<, >CultureInfo | All property values in the requested cultures. |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the value (preferable nullable). |
MarkClean()
Marks as clean.
Declaration
Overrides
SetValue(CultureInfo, object)
Sets a value for a specific culture.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture | Culture of the value. |
| object | value | Value. |
StartTracking()
Starts tracking.