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 : 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 Source

    Bigint

    Integer value.

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

    Date

    Date value.

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

    DateTime

    DateTime value.

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

    Decimal

    Decimal value.

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

    Integer

    Integer value.

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

    Json

    Json value.

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

    String

    Text value (maps to varchar database type).

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

    Text

    Text value (maps to text database type).

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

    Time

    Time value.

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

    Xml

    Xml value.

    Declaration
    public const string Xml = null
    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