SaaS CMS has officially launched! Learn more now.

Class StringFieldValidator

Represents string field validator.

Inheritance
System.Object
StringFieldValidator
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: Mediachase.BusinessFoundation.Data
Assembly: Mediachase.BusinessFoundation.Data.dll
Version: 11.8.3
Syntax
public class StringFieldValidator : BaseFieldValidator, IFieldValidator, IValidator

Constructors

StringFieldValidator()

Initializes a new instance of the StringFieldValidator class.

Declaration
public StringFieldValidator()

Properties

AllowNull

Gets or sets a value indicating whether [allow null].

Declaration
public bool AllowNull { get; set; }
Property Value
Type Description
System.Boolean

true if [allow null]; otherwise, false.

MaxLength

Gets or sets the length of the max.

Declaration
public int MaxLength { get; set; }
Property Value
Type Description
System.Int32

The length of the max.

RegexPattern

Gets or sets the regex pattern.

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

The regex pattern.

Methods

EvaluateIsValid()

Evaluates the is valid.

Declaration
protected override bool EvaluateIsValid()
Returns
Type Description
System.Boolean
Overrides

Implements