ParameterCollection::OnValidate Method (Object^)
.NET Framework (current version)
Performs additional custom processes when validating a value.
Assembly: System.Web (in System.Web.dll)
Parameters
- o
-
Type:
System::Object^
The object being validated.
| Exception | Condition |
|---|---|
| ArgumentException | The object is not an instance of the Parameter class or one of its derived classes. |
| ArgumentNullException | The object is null. |
The OnValidate method determines whether the object specified in the o parameter is a Parameter instance. If not, it throws an ArgumentException exception.
.NET Framework
Available since 2.0
Available since 2.0
Show: