DataPagerFieldCollection.OnValidate Method (Object)

 

Verifies that the specified object is a DataPagerField object.

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

protected override void OnValidate(
	object o
)

Parameters

o
Type: System.Object

The object to validate.

Exception Condition
ArgumentNullException

o is null.

ArgumentException

o is not an instance of the DataPagerField class or of one of its derived classes.

This method is called internally to validate an element of the DataPagerFieldCollection collection. The method performs type-checking and verifies that the object specified in the o parameter is not null.

.NET Framework
Available since 3.5
Return to top
Show: