LockItem Property

ConfigurationElement::LockItem Property


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

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

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

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
© 2015 Microsoft