ConfigurationElement::LockItem Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: