Validation.GetHasError(DependencyObject) Metoda

Definicja

Pobiera wartość dołączonej HasError właściwości określonego elementu.

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

Parametry

element
DependencyObject

Obiekt UIElement lub ContentElement do odczytania wartości z.

Zwraca

Boolean

Wartość dołączonej HasError właściwości określonego elementu.

Wyjątki

Jeśli element wartość to null.

Dotyczy