DirectoryAttribute.OnValidate(Object) 方法
定义
OnValidate(Object) 方法确认 value 是否为 DirectoryAttribute 对象。The OnValidate(Object) method verifies that value is a DirectoryAttribute 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 包含空引用(在 Visual Basic 中为 Nothing)。value contains a null reference (Nothing in Visual Basic).
value 必须是字符串、byte[] 或 URI。value must be either a string, byte[], or URI.
注解
此方法不返回值。This method does not return a value. 相反,如果指定的对象为 null 或是无效的对象,则会引发异常 DirectoryAttribute 。Instead, an exception is thrown if the specified object is null or is an invalid DirectoryAttribute object.