閱讀英文

共用方式為


TypeValidationEventHandler 代理人

定義

表示處理 TypeValidationCompleted 控制項之 MaskedTextBox 事件的方法。

C#
public delegate void TypeValidationEventHandler(object sender, TypeValidationEventArgs e);
C#
public delegate void TypeValidationEventHandler(object? sender, TypeValidationEventArgs e);

參數

sender
Object

事件的來源。

e
TypeValidationEventArgs

TypeValidationEventArgs,其中包含事件資料。

備註

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

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

擴充方法

GetMethodInfo(Delegate)

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

適用於

產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

另請參閱