BaseValidator.GetValidationProperty(Object) 方法

定义

确定控件的验证属性(如果存在)。

public:
 static System::ComponentModel::PropertyDescriptor ^ GetValidationProperty(System::Object ^ component);
public static System.ComponentModel.PropertyDescriptor GetValidationProperty(object component);
static member GetValidationProperty : obj -> System.ComponentModel.PropertyDescriptor
Public Shared Function GetValidationProperty (component As Object) As PropertyDescriptor

参数

component
Object

一个 Object 表示要获取其验证属性的控件。

返回

一个 PropertyDescriptor 包含控件的验证属性。

注解

该方法 GetValidationProperty 是一个帮助程序函数,用于获取指定输入控件的验证属性。

注释

此方法主要由控件开发人员使用。

适用于

另请参阅