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 A 包含控制項的驗證性質。

備註

GetValidationProperty 方法是一個輔助函式,能取得指定輸入控制項的驗證屬性。

Note

此方法主要由控制開發者使用。

適用於

另請參閱