CallbackValidator.Validate(Object) 方法
定义
确定对象的值是否有效。Determines whether the value of an object is valid.
public:
override void Validate(System::Object ^ value);
public override void Validate (object value);
override this.Validate : obj -> unit
Public Overrides Sub Validate (value As Object)
参数
- value
- Object
对象的值。The value of an object.
注解
CallbackValidator类包含验证对象所需的类型和委托。The CallbackValidator class contains the type and delegate necessary to validate an object. 创建类的实例时,将建立类型和委托 CallbackValidator 。The type and delegate are established when an instance of the CallbackValidator class is created. 要验证的对象作为方法的参数传递 Validate 。The object to validate is passed as a parameter of the Validate method.