ParameterCollection.OnValidate 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.

Performs additional custom processes when validating a value.

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

protected override void OnValidate(
	object o
)

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: