Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ConfigurationProperty::IsKey Property

 

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

Gets a value indicating whether this ConfigurationProperty is the key for the containing ConfigurationElement object.

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

public:
property bool IsKey {
	bool get();
}

Property Value

Type: System::Boolean

true if this ConfigurationProperty object is the key for the containing element; otherwise, false. The default is false.

You can define a new ConfigurationProperty object to be the key for the containing element when implementing the ConfigurationElement element. If this flag is not used, the IsKey property will return false.

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: