Search Results for

    Show / Hide Table of Contents
    View Source

    Class RawValueProperty

    Represents a published property that has a unique invariant-neutral value and caches conversion results locally.

    Inheritance
    System.Object
    PublishedPropertyBase
    Namespace: Umbraco.Cms.Core.Models.PublishedContent
    Assembly: Umbraco.Core.dll
    Syntax
    public class RawValueProperty : PublishedPropertyBase, IPublishedProperty
    Remarks

    Conversions results are stored within the property and will not be refreshed, so this class is not suitable for cached properties.

    Does not support variations: the ctor throws if the property type supports variations.

    Constructors

    View Source

    RawValueProperty(IPublishedPropertyType, IPublishedElement, Object, Boolean)

    Declaration
    public RawValueProperty(IPublishedPropertyType propertyType, IPublishedElement content, object sourceValue, bool isPreviewing = false)
    Parameters
    Type Name Description
    IPublishedPropertyType propertyType
    IPublishedElement content
    System.Object sourceValue
    System.Boolean isPreviewing

    Methods

    View Source

    GetSourceValue(String, String)

    Declaration
    public override object GetSourceValue(string culture = null, string segment = null)
    Parameters
    Type Name Description
    System.String culture
    System.String segment
    Returns
    Type Description
    System.Object
    View Source

    GetValue(String, String)

    Declaration
    public override object GetValue(string culture = null, string segment = null)
    Parameters
    Type Name Description
    System.String culture
    System.String segment
    Returns
    Type Description
    System.Object
    View Source

    GetXPathValue(String, String)

    Declaration
    public override object GetXPathValue(string culture = null, string segment = null)
    Parameters
    Type Name Description
    System.String culture
    System.String segment
    Returns
    Type Description
    System.Object
    View Source

    HasValue(String, String)

    Declaration
    public override bool HasValue(string culture = null, string segment = null)
    Parameters
    Type Name Description
    System.String culture
    System.String segment
    Returns
    Type Description
    System.Boolean
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RawValueProperty(IPublishedPropertyType, IPublishedElement, Object, Boolean)
    • Methods
      • GetSourceValue(String, String)
      • GetValue(String, String)
      • GetXPathValue(String, String)
      • HasValue(String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX