Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConfigurationValidatorAttribute Constructor (Type^)

 

Initializes a new instance of the ConfigurationValidatorAttribute class using the specified validator type.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public:
ConfigurationValidatorAttribute(
	Type^ validator
)

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
Return to top
Show:
© 2017 Microsoft