ConfigurationProperty.Validator Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Gets the ConfigurationValidatorAttribute, which is used to validate this ConfigurationProperty object.

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

public ConfigurationValidatorBase Validator { get; }

Property Value

Type: System.Configuration.ConfigurationValidatorBase

The ConfigurationValidatorBase validator, which is used to validate this ConfigurationProperty.

The following code example shows how to get the Validator for a specified property.

string validator = _MaxIdleTime.Validator.ToString();
Console.WriteLine("MaxIdleTime validator: {0}", validator);

.NET Framework
Available since 2.0
Return to top
Show: