November Happy Hour will be moved to Thursday December 5th.

Class CustomRegexStringValidator

Inheritance
System.Object
CustomRegexStringValidator
Namespace: EPiServer.Configuration
Assembly: EPiServer.Configuration.dll
Version: 11.20.7
Syntax
public class CustomRegexStringValidator : ConfigurationValidatorBase

Constructors

CustomRegexStringValidator(String, String)

Declaration
public CustomRegexStringValidator(string regexString, string errorMessageOnFailedVaildation)
Parameters
Type Name Description
System.String regexString
System.String errorMessageOnFailedVaildation

Methods

CanValidate(Type)

Checks if this Validator is compliany with the property type.

Declaration
public override bool CanValidate(Type type)
Parameters
Type Name Description
System.Type type

Type to check of compliance.

Returns
Type Description
System.Boolean

If Type is bool, true otherwise false.

Validate(Object)

Valudate the value from the configuration. Treats the value as string and if NOT parseable as boolean, throws Exception.

Declaration
public override void Validate(object value)
Parameters
Type Name Description
System.Object value

Extension Methods