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
    object
    Attribute
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Core.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public class DefaultPropertyValueConverterAttribute : Attribute

    Constructors

    View Source

    DefaultPropertyValueConverterAttribute()

    Initializes a new instance of the DefaultPropertyValueConverterAttribute class.

    Declaration
    public DefaultPropertyValueConverterAttribute()
    View Source

    DefaultPropertyValueConverterAttribute(params Type[])

    Initializes a new instance of the DefaultPropertyValueConverterAttribute class that shadows the specified converters.

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

    The types of default converters that this converter should shadow.

    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.

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