Search Results for

    Show / Hide Table of Contents
    View Source

    Class Property.PropertyValue

    Represents a property value.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Models
    Assembly: Umbraco.Core.dll
    Syntax
    public class Property.PropertyValue : IPropertyValue, IDeepCloneable

    Properties

    View Source

    Culture

    Gets or sets the culture of the property.

    Declaration
    public string? Culture { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The culture is either null (invariant) or a non-empty string. If the property is set with an empty or whitespace value, its value is converted to null.

    View Source

    EditedValue

    Gets or sets the edited value of the property.

    Declaration
    public object? EditedValue { get; set; }
    Property Value
    Type Description
    object
    View Source

    PublishedValue

    Gets or sets the published value of the property.

    Declaration
    public object? PublishedValue { get; set; }
    Property Value
    Type Description
    object
    View Source

    Segment

    Gets or sets the segment of the property.

    Declaration
    public string? Segment { get; set; }
    Property Value
    Type Description
    string
    Remarks

    The segment is either null (neutral) or a non-empty string. If the property is set with an empty or whitespace value, its value is converted to null.

    Methods

    View Source

    Clone()

    Clones the property value.

    Declaration
    public IPropertyValue Clone()
    Returns
    Type Description
    IPropertyValue
    View Source

    DeepClone()

    Declaration
    public object DeepClone()
    Returns
    Type Description
    object
    View Source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    View Source

    Equals(PropertyValue?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(Property.PropertyValue? other)
    Parameters
    Type Name Description
    Property.PropertyValue other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX