ParameterCollection.OnValidate(Object) Method

Definition

Performs additional custom processes when validating a value.

protected:
 override void OnValidate(System::Object ^ o);
protected override void OnValidate (object o);
override this.OnValidate : obj -> unit
Protected Overrides Sub OnValidate (o As Object)

Parameters

o
Object

The object being validated.

Exceptions

The object is not an instance of the Parameter class or one of its derived classes.

The object is null.

Remarks

The OnValidate method determines whether the object specified in the o parameter is a Parameter instance. If not, it throws an ArgumentException exception.

Applies to