TypeValidationEventHandler Delegat

Definicja

Reprezentuje metodę, która będzie obsługiwać TypeValidationCompleted zdarzenie kontrolki MaskedTextBox .

public delegate void TypeValidationEventHandler(System::Object ^ sender, TypeValidationEventArgs ^ e);
public delegate void TypeValidationEventHandler(object sender, TypeValidationEventArgs e);
public delegate void TypeValidationEventHandler(object? sender, TypeValidationEventArgs e);
type TypeValidationEventHandler = delegate of obj * TypeValidationEventArgs -> unit
Public Delegate Sub TypeValidationEventHandler(sender As Object, e As TypeValidationEventArgs)

Parametry

sender
Object

Źródło zdarzenia.

e
TypeValidationEventArgs

Element TypeValidationEventArgs zawierający dane zdarzenia.

Uwagi

Zdarzenie TypeValidationCompletedMaskedTextBox klasy jest opcjonalnym zdarzeniem, które jest zgłaszane tylko wtedy, gdy ValidatingType właściwość jest jawnie ustawiona na typ inny niż null.

Zazwyczaj program obsługi zdarzenia TypeValidationCompleted jest implementowany w celu wykonywania przetwarzania weryfikacji specyficznego dla maski i typu. Natomiast ogólna walidacja jest zwykle wykonywana w standardowym zdarzeniu zdefiniowanym Validating w klasie bazowej Control .

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy

Zobacz też