TypeValidationEventHandler 代理人

定義

表示處理 TypeValidationCompleted 控制項之 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)

參數

sender
Object

事件的來源。

e
TypeValidationEventArgs

TypeValidationEventArgs,其中包含事件資料。

備註

類別 TypeValidationCompleted 的事件 MaskedTextBox 是選擇性事件,只有在 屬性明確設定為 以外的 null 類型時 ValidatingType ,才會引發。

一般而言,會實作 TypeValidationCompleted 事件的處理常式,以執行遮罩特定和類型特定的驗證處理。 相反地,一般驗證通常會在基類中定義的標準 Validating 事件中 Control 執行。

擴充方法

GetMethodInfo(Delegate)

取得表示特定委派所代表之方法的物件。

適用於

另請參閱