แก้ไข

แชร์ผ่าน


Validation.GetErrors(DependencyObject) Method

Definition

Gets the value of the Errors attached property of the specified element.

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)

Parameters

element
DependencyObject

The UIElement or ContentElement object to read the value from.

Returns

A ReadOnlyObservableCollection<T> of ValidationError objects.

Exceptions

If element is null.

Applies to