SubclassTypeValidator.Validate Method (Object)

 

Determines whether the value of an object is valid.

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

public override void Validate(
	object value
)

Parameters

value
Type: System.Object

The object value.

Exception Condition
ArgumentException

value is not of a Type that can be derived from baseClass as defined in the constructor.

When an instance of the SubclassTypeValidator class is created, the base class is provided and used as evaluation criteria. The object to validate is passed as a parameter of the Validate method. This method performs the validation check between the base class and the parameter object.

.NET Framework
Available since 2.0
Return to top
Show: