Share via


Validation.GetErrors(DependencyObject) Método

Definición

Obtiene el valor de la propiedad adjunta Errors 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 desde el que se va a leer el valor.

Devoluciones

ReadOnlyObservableCollection<ValidationError>

Clase ReadOnlyObservableCollection<T> de objetos ValidationError.

Excepciones

Si element es null.

Se aplica a