Class ValueTypePropertyValueConverterBase
Provides a base class for property value converters that match based on value type.
Namespace: Umbraco.Cms.Core.PropertyEditors.ValueConverters
Assembly: Umbraco.Core.dll
Syntax
public abstract class ValueTypePropertyValueConverterBase : PropertyValueConverterBase, IPropertyValueConverter, IDiscoverable
Constructors
View SourceValueTypePropertyValueConverterBase(PropertyEditorCollection)
Initializes a new instance of the ValueTypePropertyValueConverterBase class.
Declaration
protected ValueTypePropertyValueConverterBase(PropertyEditorCollection propertyEditors)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyEditorCollection | propertyEditors | The property editor collection. |
Properties
View SourceSupportedValueTypes
Gets the value types supported by this converter.
Declaration
protected abstract string[] SupportedValueTypes { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
Methods
View SourceIsConverter(IPublishedPropertyType)
Gets a value indicating whether the converter supports a property type.
Declaration
public override bool IsConverter(IPublishedPropertyType propertyType)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedPropertyType | propertyType | The property type. |
Returns
| Type | Description |
|---|---|
| bool | A value indicating whether the converter supports a property type. |