Validation.GetErrors(DependencyObject) Metoda

Definice

Získá hodnotu Errors připojené vlastnosti zadaného prvku.

public:
 static System::Collections::ObjectModel::ReadOnlyObservableCollection<System::Windows::Controls::ValidationError ^> ^ GetErrors(System::Windows::DependencyObject ^ element);
public static System.Collections.ObjectModel.ReadOnlyObservableCollection<System.Windows.Controls.ValidationError> GetErrors (System.Windows.DependencyObject element);
static member GetErrors : System.Windows.DependencyObject -> System.Collections.ObjectModel.ReadOnlyObservableCollection<System.Windows.Controls.ValidationError>
Public Shared Function GetErrors (element As DependencyObject) As ReadOnlyObservableCollection(Of ValidationError)

Parametry

element
DependencyObject

Hodnota UIElement se čte z objektu nebo ContentElement objektu.

Návraty

ReadOnlyObservableCollection<ValidationError>

ValidationError A ReadOnlyObservableCollection<T> objektů.

Výjimky

Pokud element je null.

Platí pro