Validation.GetErrors(DependencyObject) Método

Definição

Obtém o valor da propriedade anexada Errors do 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

O objeto UIElement ou ContentElement do qual o valor é lido.

Retornos

Uma ReadOnlyObservableCollection<T> de objetos ValidationError.

Exceções

Se element for null.

Aplica-se a