ConfigurationProperty.Converter 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 TypeConverter used to convert this ConfigurationProperty into an XML representation for writing to the configuration file.

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

public TypeConverter Converter { get; }

Property Value

Type: System.ComponentModel.TypeConverter

A TypeConverter used to convert this ConfigurationProperty into an XML representation for writing to the configuration file.

Exception Condition
Exception

This ConfigurationProperty cannot be converted.

The following code example shows how to use the Converter property to get the TypeConverter for a specified configuration-property object.

string converter = _MaxIdleTime.Converter.ToString();
Console.WriteLine("MaxIdleTime coverter: {0}", converter);

.NET Framework
Available since 2.0
Return to top
Show: