TypeValidationEventHandler TypeValidationEventHandler TypeValidationEventHandler TypeValidationEventHandler Delegate

定义

表示将处理 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 Object Object Object

事件源。The source of the event.

继承
TypeValidationEventHandlerTypeValidationEventHandlerTypeValidationEventHandlerTypeValidationEventHandler

注解

类的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) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于

另请参阅