Validation.RemoveErrorHandler 方法

定義

從指定的物件新增 Error 附加事件的事件處理常式。

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

參數

element
DependencyObject

要從中移除 handlerUIElementContentElement 物件。

handler
EventHandler<ValidationErrorEventArgs>

要移除的處理常式。

適用於