Share via


Validation.GetHasError(DependencyObject) Metodo

Definizione

Ottiene il valore della proprietà associata HasError dell'elemento specificato.

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

Parametri

element
DependencyObject

Oggetto UIElement o ContentElement da cui leggere il valore.

Restituisce

Boolean

Valore della proprietà associata HasError dell'elemento specificato.

Eccezioni

Se element è null.

Si applica a