Search Results for

    Show / Hide Table of Contents
    View Source

    Class DefaultPropertyValueConverterAttribute

    Indicates that this is a default property value converter (shipped with Umbraco)

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Core.dll
    Syntax
    public class DefaultPropertyValueConverterAttribute : Attribute

    Constructors

    View Source

    DefaultPropertyValueConverterAttribute()

    Declaration
    public DefaultPropertyValueConverterAttribute()
    View Source

    DefaultPropertyValueConverterAttribute(Type[])

    Declaration
    public DefaultPropertyValueConverterAttribute(params Type[] convertersToShadow)
    Parameters
    Type Name Description
    Type[] convertersToShadow

    Properties

    View Source

    DefaultConvertersToShadow

    A DefaultPropertyValueConverter can 'shadow' other default property value converters so that a DefaultPropertyValueConverter can be more specific than another one.

    Declaration
    public Type[] DefaultConvertersToShadow { get; }
    Property Value
    Type Description
    Type[]
    Remarks

    An example where this is useful is that both the MultiUrlPickerValueConverter and the JsonValueConverter will be returned as value converters for the Related Links Property editor, however the JsonValueConverter is a very generic converter and the MultiUrlPickerValueConverter is more specific than it, so the MultiUrlPickerValueConverter can specify that it 'shadows' the JsonValueConverter.

    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • DefaultPropertyValueConverterAttribute()
      • DefaultPropertyValueConverterAttribute(Type[])
    • Properties
      • DefaultConvertersToShadow
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX