Try our conversational search powered by Generative AI!

Class PropertyValidationDefinition

NOTE: This is a pre-release API that is UNSTABLE and might not satisfy the compatibility requirements as denoted by its associated normal version. The definition of a property validation.

Inheritance
System.Object
PropertyValidationDefinition
Inherited Members
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.Validation
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class PropertyValidationDefinition

Constructors

PropertyValidationDefinition(String, Type, Type)

Initializes a new instance of the PropertyValidationDefinition class.

Declaration
public PropertyValidationDefinition(string name, Type dataType, Type settingsType)
Parameters
Type Name Description
System.String name

The name of the property validation.

System.Type dataType

The property data type that this definition applies to.

System.Type settingsType

The type that is used to store validation settings.

Properties

DataType

The property data type that this definition applies to.

Declaration
public Type DataType { get; }
Property Value
Type Description
System.Type

Name

The name of the property validation.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

SettingsType

The type that is used to store validation settings for this validation.

Declaration
public Type SettingsType { get; }
Property Value
Type Description
System.Type

Methods

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods