Validation.AddErrorHandler Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Adiciona um manipulador de eventos do evento anexado Error ao objeto especificado.
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))
Parâmetros
- element
- DependencyObject
O objeto UIElement ou ContentElement ao qual o handler será adicionado.
- handler
- EventHandler<ValidationErrorEventArgs>
O manipulador a ser adicionado.