Class Validator
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents a validator.
public abstract class Validator
- Inheritance
-
Validator
- Derived
- Inherited Members
Constructors
Validator()
Initializes a new instance of an object.
protected Validator()
Properties
ErrorMessage
Gets or sets the error message displayed when validation fails.
public string ErrorMessage { get; set; }
Property Value
Methods
Validate(ValidatorContext)
Performs validation and returns value indicating whether validation was successful.
public abstract bool Validate(ValidatorContext context)
Parameters
context
ValidatorContextValidation context.
Returns
- bool
Value indicating whether validation was successful.