Validation.GetErrors(DependencyObject) Validation.GetErrors(DependencyObject) Validation.GetErrors(DependencyObject) Validation.GetErrors(DependencyObject) Method

定義

指定された要素の Errors 添付プロパティの値を取得します。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)

パラメーター

element
DependencyObject DependencyObject DependencyObject DependencyObject

値の読み取り元の UIElement オブジェクトまたは ContentElement オブジェクト。The UIElement or ContentElement object to read the value from.

戻り値

例外

適用対象