IsReadOnly Method

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.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft