PropertyInformation.Validator Property

Gets a ConfigurationValidatorBase object related to the configuration attribute.

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

public ConfigurationValidatorBase Validator { get; }

Use the returned ConfigurationValidatorBase object to validate the value configuration attribute.

The following code example demonstrates how to use the Type property. This code example is part of a larger example provided for the PropertyInformation class.

// Display the Validator property.
Console.WriteLine("Validator: {0}", propertyItem.Validator);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft