DirectoryControlCollection.OnValidate(Object) 方法

定义

OnValidate(Object) 方法确认 value 是否为 DirectoryControl 对象。The OnValidate(Object) method verifies that value is a DirectoryControl object.

protected:
 override void OnValidate(System::Object ^ value);
protected override void OnValidate (object value);
override this.OnValidate : obj -> unit
Protected Overrides Sub OnValidate (value As Object)

参数

value
Object

要计算的对象。The object to evaluate.

例外

value 为空引用(在 Visual Basic 中为 Nothing)。value is a null reference (Nothing in Visual Basic).

value 不是 DirectoryControl 对象。value is not a DirectoryControl object.

注解

此方法不返回值。This method does not return a value. 相反,如果指定的对象为 null 或不是有效的对象,则会引发异常 DirectoryControlInstead, an exception is thrown if the specified object is null or is not a valid DirectoryControl object.

适用于