ConfigurationValidatorAttribute Constructor (Type^)
.NET Framework (current version)
Initializes a new instance of the ConfigurationValidatorAttribute class using the specified validator type.
Assembly: System.Configuration (in System.Configuration.dll)
Parameters
- validator
-
Type:
System::Type^
The validator type to use when creating an instance of ConfigurationValidatorAttribute.
| Exception | Condition |
|---|---|
| ArgumentNullException | validator is null. |
| ArgumentException | validator is not derived from ConfigurationValidatorBase. |
This constructor determines whether a validator instance can be created from an instance of the specified validator type.
.NET Framework
Available since 2.0
Available since 2.0
Show: