CallbackValidator Class
Provides dynamic validation of an object.
Assembly: System.Configuration (in System.Configuration.dll)
System.Configuration::ConfigurationValidatorBase
System.Configuration::CallbackValidator
| Name | Description | |
|---|---|---|
![]() | CallbackValidator(Type^, ValidatorCallback^) | Initializes a new instance of the CallbackValidator class. |
| Name | Description | |
|---|---|---|
![]() | CanValidate(Type^) | Determines whether the type of the object can be validated.(Overrides ConfigurationValidatorBase::CanValidate(Type^).) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Validate(Object^) | Determines whether the value of an object is valid.(Overrides ConfigurationValidatorBase::Validate(Object^).) |
To use this class, you need to implement a ValidatorCallback delegate for the type of object you want to validate. When you instantiate this class, you pass in the object type and a reference to the delegate. You can then call CanValidate to determine if an object is the correct type or Validate to execute the delegate on the object.
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
