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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.