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
Available since 2.0
Return to top
Show: