TypeValidationEventHandler 代理人
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示處理 TypeValidationCompleted 控制項之 MaskedTextBox 事件的方法。
public delegate void TypeValidationEventHandler(System::Object ^ sender, TypeValidationEventArgs ^ e);
C#
public delegate void TypeValidationEventHandler(object sender, TypeValidationEventArgs e);
C#
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
事件的來源。
TypeValidationEventArgs,其中包含事件資料。
類別 TypeValidationCompleted 的事件 MaskedTextBox 是選擇性事件,只有在 屬性明確設定為 以外的 null
類型時 ValidatingType ,才會引發。
一般而言,會實作 TypeValidationCompleted 事件的處理常式,以執行遮罩特定和類型特定的驗證處理。 相反地,一般驗證通常會在基類中定義的標準 Validating 事件中 Control 執行。
Get |
取得表示特定委派所代表之方法的物件。 |
產品 | 版本 |
---|---|
.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 |