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.

ConfigurationElement::LockItem Property

 

Gets or sets a value indicating whether the element is locked.

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

public:
property bool LockItem {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the element is locked; otherwise, false. The default is false.

Exception Condition
ConfigurationErrorsException

The element has already been locked at a higher configuration level.

Use the LockItem property if you want to put a general lock on the element itself and its child elements.

The following example shows how to use the LockItem.

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

.NET Framework
Available since 2.0
Return to top
Show: