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

Class BoolValidator

Inheritance
System.Object
BoolValidator
Namespace: EPiServer.Configuration
Assembly: EPiServer.Configuration.dll
Version: 10.10.4
Syntax
public class BoolValidator : ConfigurationValidatorBase

Constructors

BoolValidator()

Declaration
public BoolValidator()

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