Search Results for

    Show / Hide Table of Contents

    Class JsonValueConverter

    The default converter for all property editors that expose a JSON value type

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.PropertyEditors.ValueConverters
    Assembly: cs.temp.dll.dll
    Syntax
    public class JsonValueConverter : PropertyValueConverterBase
    Remarks

    Since this is a default (umbraco) converter it will be ignored if another converter found conflicts with this one.

    Constructors

    JsonValueConverter(PropertyEditorCollection, ILogger<JsonValueConverter>)

    Initializes a new instance of the JsonValueConverter class.

    Declaration
    public JsonValueConverter(PropertyEditorCollection propertyEditors, ILogger<JsonValueConverter> logger)
    Parameters
    Type Name Description
    PropertyEditorCollection propertyEditors
    ILogger<JsonValueConverter> logger

    Methods

    ConvertSourceToIntermediate(IPublishedElement, IPublishedPropertyType, Object, Boolean)

    Declaration
    public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
    Parameters
    Type Name Description
    IPublishedElement owner
    IPublishedPropertyType propertyType
    System.Object source
    System.Boolean preview
    Returns
    Type Description
    System.Object

    GetPropertyCacheLevel(IPublishedPropertyType)

    Declaration
    public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType)
    Parameters
    Type Name Description
    IPublishedPropertyType propertyType
    Returns
    Type Description
    PropertyCacheLevel

    GetPropertyValueType(IPublishedPropertyType)

    Declaration
    public override Type GetPropertyValueType(IPublishedPropertyType propertyType)
    Parameters
    Type Name Description
    IPublishedPropertyType propertyType
    Returns
    Type Description
    System.Type

    IsConverter(IPublishedPropertyType)

    It is a converter for any value type that is "JSON" Unless it's in the Excluded Property Editors list The new MediaPicker 3 stores JSON but we want to use its own ValueConvertor

    Declaration
    public override bool IsConverter(IPublishedPropertyType propertyType)
    Parameters
    Type Name Description
    IPublishedPropertyType propertyType
    Returns
    Type Description
    System.Boolean
    In This Article
    • Constructors
      • JsonValueConverter(PropertyEditorCollection, ILogger<JsonValueConverter>)
    • Methods
      • ConvertSourceToIntermediate(IPublishedElement, IPublishedPropertyType, Object, Boolean)
      • GetPropertyCacheLevel(IPublishedPropertyType)
      • GetPropertyValueType(IPublishedPropertyType)
      • IsConverter(IPublishedPropertyType)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX