Class DefaultPropertyValueConverterAttribute
Indicates that this is a default property value converter (shipped with Umbraco)
Inheritance
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class DefaultPropertyValueConverterAttribute : Attribute
Constructors
View SourceDefaultPropertyValueConverterAttribute()
Initializes a new instance of the DefaultPropertyValueConverterAttribute class.
Declaration
public DefaultPropertyValueConverterAttribute()
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 SourceDefaultConvertersToShadow
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.