BaseValidator.GetValidationProperty(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定控件的验证属性(如果存在)。
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
参数
返回
一个 PropertyDescriptor 包含控件的验证属性。
注解
该方法 GetValidationProperty 是一个帮助程序函数,用于获取指定输入控件的验证属性。
注释
此方法主要由控件开发人员使用。