Search Results for

    Show / Hide Table of Contents

    Class CmsValue

    A single value of an object

    Inheritance
    object
    CmsValue
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Noxum.Nova.Cms.Client
    Assembly: Noxum.Nova.Cms.Client.dll
    Syntax
    public class CmsValue

    Properties

    Attribute

    The attribute ID

    Declaration
    [JsonPropertyName("attribute")]
    public int Attribute { get; set; }
    Property Value
    Type Description
    int

    Language

    The language ID or 0 if the value is not language specific

    Declaration
    [JsonPropertyName("language")]
    public int Language { get; set; }
    Property Value
    Type Description
    int

    SortReverse

    The reverse sort key, if any

    Declaration
    [JsonPropertyName("sortReverse")]
    public int? SortReverse { get; set; }
    Property Value
    Type Description
    int?

    Transaction

    The transaction id of the value.

    Declaration
    [JsonPropertyName("transaction")]
    public long? Transaction { get; set; }
    Property Value
    Type Description
    long?

    UnitRef

    The unit ID or null if the value is not unit specific

    Declaration
    [JsonPropertyName("unitRef")]
    public int? UnitRef { get; set; }
    Property Value
    Type Description
    int?

    Value

    The scalar value, either a boolean, a number or a string

    Declaration
    [JsonPropertyName("value")]
    public object Value { get; set; }
    Property Value
    Type Description
    object

    Variant

    The variant ID or 0 if the value is not variant specific

    Declaration
    [JsonPropertyName("variant")]
    public int Variant { get; set; }
    Property Value
    Type Description
    int

    Methods

    GetValue<T>()

    Get a typed value

    Declaration
    public T GetValue<T>()
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    InvalidCastException

    If the value cannot be converted to the requested type

    SetValue<T>(T)

    Set the value (string, byte[], int, long, Guid, DateTime, double, decimal)

    Declaration
    public void SetValue<T>(T value)
    Parameters
    Type Name Description
    T value
    Type Parameters
    Name Description
    T
    Exceptions
    Type Condition
    InvalidCastException

    If the value cannot be converted to an allowed type

    In this article
    Back to top Version 6.1.0.31rc