Export (0) Print
Expand All

ConfigurationElement::IsReadOnly Method

Gets a value indicating whether the ConfigurationElement object is read-only.

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

public:
virtual bool IsReadOnly()

Return Value

Type: System::Boolean
true if the ConfigurationElement object is read-only; otherwise, false.

The system defines configuration elements that cannot be modified.

To determine which elements can be modified, use the IsReadOnly method.

The following example shows how to use the IsReadOnly method. It is used on a custom section and returns false.

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

.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
Show:
© 2015 Microsoft