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: