ParameterCollection.OnValidate(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.