SubclassTypeValidator::Validate Method (Object^)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Determines whether the value of an object is valid.

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

public:
virtual void Validate(
	Object^ value
) override

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: