TypeValidationEventArgs(Type, Boolean, Object, String) 构造函数

定义

初始化 TypeValidationEventArgs 类的新实例。

public:
 TypeValidationEventArgs(Type ^ validatingType, bool isValidInput, System::Object ^ returnValue, System::String ^ message);
public TypeValidationEventArgs (Type validatingType, bool isValidInput, object returnValue, string message);
new System.Windows.Forms.TypeValidationEventArgs : Type * bool * obj * string -> System.Windows.Forms.TypeValidationEventArgs
Public Sub New (validatingType As Type, isValidInput As Boolean, returnValue As Object, message As String)

参数

validatingType
Type

Type,格式化输入字符串的验证目标类型。

isValidInput
Boolean

一个 Boolean 值,指示格式化字符串是否成功转换为验证类型。

returnValue
Object

Object,是格式化字符串转换为目标类型的结果。

message
String

包含转换过程说明的 String

注解

构造函数的参数 TypeValidationEventArgs 用于初始化此类的相应只读属性。

适用于

另请参阅