CallbackValidator Class

 

Provides dynamic validation of an object.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

System.Object
  System.Configuration.ConfigurationValidatorBase
    System.Configuration.CallbackValidator

public sealed class CallbackValidator : ConfigurationValidatorBase

NameDescription
System_CAPS_pubmethodCallbackValidator(Type, ValidatorCallback)

Initializes a new instance of the CallbackValidator class.

NameDescription
System_CAPS_pubmethodCanValidate(Type)

Determines whether the type of the object can be validated.(Overrides ConfigurationValidatorBase.CanValidate(Type).)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodValidate(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.

.NET Framework
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.

Return to top
Show: