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
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.