Validation.GetErrors(DependencyObject) Método

Definición

Obtiene el valor de la Errors propiedad adjunta del elemento especificado.

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)

Parámetros

element
DependencyObject

Objeto UIElement o ContentElement del que se va a leer el valor.

Devoluciones

de ReadOnlyObservableCollection<T>ValidationError objetos .

Excepciones

Si element es null.

Se aplica a