ParameterCollection::OnValidate Method (Object^)

 

Performs additional custom processes when validating a value.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

protected:
virtual void OnValidate(
	Object^ o
) override

Parameters

o
Type: System::Object^

The object being validated.

Exception Condition
ArgumentException

The object is not an instance of the Parameter class or one of its derived classes.

ArgumentNullException

The object is null.

The OnValidate method determines whether the object specified in the o parameter is a Parameter instance. If not, it throws an ArgumentException exception.

.NET Framework
Available since 2.0
Return to top
Show: