Class BoolValidator
Inheritance
System.Object
BoolValidator
Namespace: EPiServer.Configuration
Assembly: EPiServer.Configuration.dll
Version: 11.20.7Syntax
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 |