TypeValidationEventHandler 委托
定义
表示将处理 TypeValidationCompleted 控件的 MaskedTextBox 事件的方法。Represents the method that will handle the TypeValidationCompleted event of the MaskedTextBox control.
public delegate void TypeValidationEventHandler(System::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
事件源。The source of the event.
包含事件数据的 TypeValidationEventArgs。A TypeValidationEventArgs that contains the event data.
- 继承
注解
类的TypeValidationCompleted事件ValidatingType null
是一个可选事件, 仅当属性显式设置为之外的类型时, 才引发此事件。 MaskedTextBoxThe TypeValidationCompleted event of the MaskedTextBox class is an optional event that is raised only if the ValidatingType property is explicitly set to a type other than null
.
通常, 实现TypeValidationCompleted事件的处理程序以执行特定于掩码和类型的验证处理。Typically, a handler for the TypeValidationCompleted event is implemented to perform mask-specific and type-specific validation processing. 相反, 一般验证通常在Validating Control基类中定义的标准事件中执行。In contrast, general validation is typically performed in the standard Validating event defined in the Control base class.
扩展方法
GetMethodInfo(Delegate) |
获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate. |