Validation.GetHasError(DependencyObject) 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定元素的 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。