Class CultureSensitiveProperty
このページの翻訳はAIによって自動的に行われました。可能な限り正確な翻訳を心掛けていますが、原文と異なる表現や解釈が含まれる場合があります。正確で公式な情報については、必ず英語の原文をご参照ください。
A culture sensitive property.
Implements
Inherited Members
Namespace: Stylelabs.M.Sdk.Models.Base
Assembly: Stylelabs.M.Sdk.dll
Syntax
Constructors
CultureSensitiveProperty(String, Type, ISet<CultureInfo>)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| Type | type | |
| ISet<CultureInfo> | loadedCultures |
CultureSensitiveProperty(String, Type, ISet<CultureInfo>, IDictionary<CultureInfo, Object>)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | |
| Type | type | |
| ISet<CultureInfo> | loadedCultures | |
| IDictionary<CultureInfo, System.Object> | values |
Properties
IsDirty
Declaration
Property Value
| Type | Description |
|---|---|
| System.Boolean |
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()
Declaration
Returns
| Type | Description |
|---|---|
| IList<CultureInfo> |
GetTypeName()
Gets the type name of the subtype.
Declaration
Returns
| Type | Description |
|---|---|
| System.String |
Name of the subtype. |
Overrides
GetValue(CultureInfo)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
Returns
| Type | Description |
|---|---|
| System.Object |
GetValue<T>(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<CultureInfo, System.Object> |
Property values. |
Remarks
This method only returns the values in the cultures the IEntity was loaded in.
GetValues<T>()
Gets all values per culture.
Declaration
Returns
| Type | Description |
|---|---|
| IDictionary<CultureInfo, T> |
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<T>(IEnumerable<CultureInfo>)
Gets all values in the requested cultures.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<CultureInfo> | cultures |
Cultures to include. |
Returns
| Type | Description |
|---|---|
| IDictionary<CultureInfo, T> |
All property values in the requested cultures |
Type Parameters
| Name | Description |
|---|---|
| T |
Type of the value (preferable nullable). |
MarkClean()
Declaration
Overrides
SetValue(CultureInfo, Object)
Sets a value for a specific culture.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| CultureInfo | culture |
Culture of the value |
| System.Object | value |
Value |
StartTracking()
Starts tracking the object for changes.