Table of Contents

Class RegExValidator

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll
Represents a regular expression validator.
public class RegExValidator : Validator
Inheritance
RegExValidator
Inherited Members

Constructors

RegExValidator()

Initializes a new instance of an object.
public RegExValidator()

RegExValidator(string)

Initializes a new instance of an object.
public RegExValidator(string expression)

Parameters

expression string
Validation expression.

Properties

Expression

Gets or sets the unescaped validation expression.
public string Expression { get; set; }

Property Value

string

Methods

RenderValidator(string, EditFormField)

Render validation script.
[Obsolete("Do not use")]
public override string RenderValidator(string context, EditFormField field)

Parameters

context string
Validation context.
field EditFormField
Field.

Returns

string
Value indicating whether validation was successful.

Validate(ValidatorContext)

Performs validation and returns value indicating whether validation was successful.
public override bool Validate(ValidatorContext context)

Parameters

context ValidatorContext
Validation context.

Returns

bool
Value indicating whether validation was successful.
To top