Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    Bigint

    Integer value.

    Declaration
    public const string Bigint = "BIGINT"
    Field Value
    Type Description
    System.String
    View Source

    Date

    Date value.

    Declaration
    public const string Date = "DATE"
    Field Value
    Type Description
    System.String
    View Source

    DateTime

    DateTime value.

    Declaration
    public const string DateTime = "DATETIME"
    Field Value
    Type Description
    System.String
    View Source

    Decimal

    Decimal value.

    Declaration
    public const string Decimal = "DECIMAL"
    Field Value
    Type Description
    System.String
    View Source

    Integer

    Integer value.

    Declaration
    public const string Integer = "INT"
    Field Value
    Type Description
    System.String
    View Source

    Json

    Json value.

    Declaration
    public const string Json = "JSON"
    Field Value
    Type Description
    System.String
    View Source

    String

    Text value (maps to varchar database type).

    Declaration
    public const string String = "STRING"
    Field Value
    Type Description
    System.String
    View Source

    Text

    Text value (maps to text database type).

    Declaration
    public const string Text = "TEXT"
    Field Value
    Type Description
    System.String
    View Source

    Time

    Time value.

    Declaration
    public const string Time = "TIME"
    Field Value
    Type Description
    System.String
    View Source

    Xml

    Xml value.

    Declaration
    public const string Xml = "XML"
    Field Value
    Type Description
    System.String

    Methods

    View Source

    IsValue(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
    View Source

    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
    • Improve this Doc
    • View Source
    In This Article
    • Fields
      • Bigint
      • Date
      • DateTime
      • Decimal
      • Integer
      • Json
      • String
      • Text
      • Time
      • Xml
    • Methods
      • IsValue(String)
      • ToStorageType(String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX