Class CultureInfoTypeHandler
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Handles System.Globalization.CultureInfo when stored in DDS.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Data.TypeHandlers.Internal
Assembly: EPiServer.Data.dll
Version: 11.20.7Syntax
public class CultureInfoTypeHandler : ITypeHandler
Constructors
CultureInfoTypeHandler()
Declaration
public CultureInfoTypeHandler()
Methods
FromDatabaseFormat(String, Object, Type, Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns an System.Globalization.CultureInfo instance from the database format.
Declaration
public object FromDatabaseFormat(string propertyName, object propertyValue, Type targetType, Type ownerType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property. |
System.Object | propertyValue | The property value. |
System.Type | targetType | Type of the target. |
System.Type | ownerType | Type of the owner. |
Returns
Type | Description |
---|---|
System.Object | A System.Globalization.CultureInfo instance |
MapToDatabaseType(Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns the database type as string.
Declaration
public Type MapToDatabaseType(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Type | The type that is stored in database |
ToDatabaseFormat(String, Object, Type)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Returns the System.Globalization.CultureInfo value in the database format.
Declaration
public object ToDatabaseFormat(string propertyName, object propertyValue, Type ownerType)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | Name of the property. |
System.Object | propertyValue | The property value. |
System.Type | ownerType | Type of the owner. |
Returns
Type | Description |
---|---|
System.Object | The name of the System.Globalization.CultureInfo |