Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Validation.AddErrorHandler(DependencyObject, EventHandler<ValidationErrorEventArgs>) Method

定義

指定したオブジェクトに Error 添付イベントのイベント ハンドラーを追加します。Adds an event handler for the Error attached event to the specified object.

public:
 static void AddErrorHandler(System::Windows::DependencyObject ^ element, EventHandler<System::Windows::Controls::ValidationErrorEventArgs ^> ^ handler);
public static void AddErrorHandler (System.Windows.DependencyObject element, EventHandler<System.Windows.Controls.ValidationErrorEventArgs> handler);
static member AddErrorHandler : System.Windows.DependencyObject * EventHandler<System.Windows.Controls.ValidationErrorEventArgs> -> unit
Public Shared Sub AddErrorHandler (element As DependencyObject, handler As EventHandler(Of ValidationErrorEventArgs))

パラメーター

element
DependencyObject DependencyObject DependencyObject DependencyObject

handler を追加する UIElement オブジェクトまたは ContentElement オブジェクト。The UIElement or ContentElement object to add handler to.

handler
EventHandler<ValidationErrorEventArgs>

追加するハンドラー。The handler to add.

適用対象