Validation.GetErrors(DependencyObject) 메서드

정의

지정된 요소의 Errors 연결된 속성의 값을 설정합니다.

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)

매개 변수

element
DependencyObject

값을 읽을 UIElement 또는 ContentElement 개체입니다.

반환

ReadOnlyObservableCollection<ValidationError>

ReadOnlyObservableCollection<T> 개체의 ValidationError입니다.

예외

elementnull인 경우입니다.

적용 대상