DataPagerFieldCollection.OnValidate(Object) 方法
定义
验证指定的对象是否为 DataPagerField 对象。Verifies that the specified object is a DataPagerField object.
protected:
override void OnValidate(System::Object ^ o);
protected override void OnValidate (object o);
override this.OnValidate : obj -> unit
Protected Overrides Sub OnValidate (o As Object)
参数
- o
- Object
要验证的对象。The object to validate.
例外
o 为 null。o is null.
o 不是 DataPagerField 类或其派生类之一的实例。o is not an instance of the DataPagerField class or of one of its derived classes.
注解
此方法在内部调用以验证集合的元素 DataPagerFieldCollection 。This method is called internally to validate an element of the DataPagerFieldCollection collection. 方法执行类型检查,并验证参数中指定的对象 o 是否不为 null 。The method performs type-checking and verifies that the object specified in the o parameter is not null.