Validation.GetHasError(DependencyObject) 方法

定义

获取指定元素的附加属性的值 HasError

public:
 static bool GetHasError(System::Windows::DependencyObject ^ element);
public static bool GetHasError(System.Windows.DependencyObject element);
static member GetHasError : System.Windows.DependencyObject -> bool
Public Shared Function GetHasError (element As DependencyObject) As Boolean

参数

element
DependencyObject

UIElement 从中读取值的或 ContentElement 对象。

返回

指定元素的附加属性的值 HasError

例外

element如果是null

适用于