Class ValueTypes
Represents the types of the edited values.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
public static class ValueTypes
Remarks
These types are used to determine the storage type, but also for validation. Therefore, they are more detailed than the storage types.
Fields
View SourceBigint
Integer value.
Declaration
public const string Bigint = "BIGINT"
Field Value
Type | Description |
---|---|
System.String |
Date
Date value.
Declaration
public const string Date = "DATE"
Field Value
Type | Description |
---|---|
System.String |
DateTime
DateTime value.
Declaration
public const string DateTime = "DATETIME"
Field Value
Type | Description |
---|---|
System.String |
Decimal
Decimal value.
Declaration
public const string Decimal = "DECIMAL"
Field Value
Type | Description |
---|---|
System.String |
Integer
Integer value.
Declaration
public const string Integer = "INT"
Field Value
Type | Description |
---|---|
System.String |
Json
Json value.
Declaration
public const string Json = "JSON"
Field Value
Type | Description |
---|---|
System.String |
String
Text value (maps to varchar database type).
Declaration
public const string String = "STRING"
Field Value
Type | Description |
---|---|
System.String |
Text
Text value (maps to text database type).
Declaration
public const string Text = "TEXT"
Field Value
Type | Description |
---|---|
System.String |
Time
Time value.
Declaration
public const string Time = "TIME"
Field Value
Type | Description |
---|---|
System.String |
Xml
Xml value.
Declaration
public const string Xml = "XML"
Field Value
Type | Description |
---|---|
System.String |
Methods
View SourceIsValue(String)
Determines whether a string value is a valid ValueTypes value.
Declaration
public static bool IsValue(string s)
Parameters
Type | Name | Description |
---|---|---|
System.String | s |
Returns
Type | Description |
---|---|
System.Boolean |
ToStorageType(String)
Gets the ValueStorageType value corresponding to a ValueTypes value.
Declaration
public static ValueStorageType ToStorageType(string valueType)
Parameters
Type | Name | Description |
---|---|---|
System.String | valueType |
Returns
Type | Description |
---|---|
ValueStorageType |