Class ConfigurationField
Represents a datatype configuration field for editing.
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.PropertyEditors
Assembly: Umbraco.Core.dll
Syntax
[DataContract]
public class ConfigurationField
Constructors
View SourceConfigurationField()
Initializes a new instance of the ConfigurationField class.
Declaration
public ConfigurationField()
ConfigurationField(IValueValidator[])
Initializes a new instance of the ConfigurationField class.
Declaration
public ConfigurationField(params IValueValidator[] validators)
Parameters
Type | Name | Description |
---|---|---|
IValueValidator[] | validators |
Properties
View SourceConfig
Gets or sets extra configuration properties for the editor.
Declaration
[DataMember(Name = "config")]
public IDictionary<string, object> Config { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, System.Object> |
Key
Gets or sets the key of the field.
Declaration
[DataMember(Name = "key", IsRequired = true)]
public string Key { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyName
Gets or sets the property name of the field.
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyType
Gets or sets the property CLR type of the field.
Declaration
public Type? PropertyType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Type> |
Validators
Gets the validators of the field.
Declaration
[DataMember(Name = "validation")]
public List<IValueValidator> Validators { get; }
Property Value
Type | Description |
---|---|
List<IValueValidator> |