CallbackValidator(Type, ValidatorCallback) 构造函数

定义

初始化 CallbackValidator 类的新实例。

public:
 CallbackValidator(Type ^ type, System::Configuration::ValidatorCallback ^ callback);
public CallbackValidator (Type type, System.Configuration.ValidatorCallback callback);
new System.Configuration.CallbackValidator : Type * System.Configuration.ValidatorCallback -> System.Configuration.CallbackValidator
Public Sub New (type As Type, callback As ValidatorCallback)

参数

type
Type

将要验证的对象的类型。

callback
ValidatorCallback

用作委托的 ValidatorCallback

例外

typenull

适用于