Validation.GetHasError(DependencyObject) Method

Definition

Gets the value of the HasError attached property of the specified element.

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

Parameters

element
DependencyObject

The UIElement or ContentElement object to read the value from.

Returns

The value of the HasError attached property of the specified element.

Exceptions

If element is null.

Applies to