Class ValidationRuleDescriptor
Describes a set of validation rules for a field.
Inheritance
System.Object
ValidationRuleDescriptor
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class ValidationRuleDescriptor
Constructors
ValidationRuleDescriptor()
Instantiates a ValidationRuleDescriptor with no validation rules.
Declaration
public ValidationRuleDescriptor()
ValidationRuleDescriptor(String)
Instantiates a ValidationRuleDescriptor with field name.
Declaration
public ValidationRuleDescriptor(string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName |
ValidationRuleDescriptor(String, ModelClientValidationRuleCollection)
Instantiates a ValidationRuleDescriptor with validation rules.
Declaration
public ValidationRuleDescriptor(string fieldName, ModelClientValidationRuleCollection rules)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | |
ModelClientValidationRuleCollection | rules |
ValidationRuleDescriptor(String, Boolean)
Instantiates a ValidationRuleDescriptor with field name.
Declaration
public ValidationRuleDescriptor(string fieldName, bool createIfNotFound)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | |
System.Boolean | createIfNotFound |
ValidationRuleDescriptor(String, Boolean, ModelClientValidationRuleCollection)
Instantiates a ValidationRuleDescriptor with validation rules.
Declaration
public ValidationRuleDescriptor(string fieldName, bool createIfNotFound, ModelClientValidationRuleCollection rules)
Parameters
Type | Name | Description |
---|---|---|
System.String | fieldName | |
System.Boolean | createIfNotFound | |
ModelClientValidationRuleCollection | rules |
Properties
CreateIfNotFound
Gets or sets whether to create a validation value if one is not found.
Declaration
public bool CreateIfNotFound { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FieldName
The name of the field whose validation rules to extend.
Declaration
public string FieldName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Rules
Collection of validation rules.
Declaration
public ModelClientValidationRuleCollection Rules { get; set; }
Property Value
Type | Description |
---|---|
ModelClientValidationRuleCollection |