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 : object
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 = null
Field Value
| Type | Description |
|---|---|
| System.String |
Date
Date value.
Declaration
public const string Date = null
Field Value
| Type | Description |
|---|---|
| System.String |
DateTime
DateTime value.
Declaration
public const string DateTime = null
Field Value
| Type | Description |
|---|---|
| System.String |
Decimal
Decimal value.
Declaration
public const string Decimal = null
Field Value
| Type | Description |
|---|---|
| System.String |
Integer
Integer value.
Declaration
public const string Integer = null
Field Value
| Type | Description |
|---|---|
| System.String |
Json
Json value.
Declaration
public const string Json = null
Field Value
| Type | Description |
|---|---|
| System.String |
String
Text value (maps to varchar database type).
Declaration
public const string String = null
Field Value
| Type | Description |
|---|---|
| System.String |
Text
Text value (maps to text database type).
Declaration
public const string Text = null
Field Value
| Type | Description |
|---|---|
| System.String |
Time
Time value.
Declaration
public const string Time = null
Field Value
| Type | Description |
|---|---|
| System.String |
Xml
Xml value.
Declaration
public const string Xml = null
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 |