PropertyInformation.IsLocked Property


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

Gets a value specifying whether the configuration attribute is locked.

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

public bool IsLocked { get; }

Property Value

Type: System.Boolean

true if the PropertyInformation object is locked; otherwise, false.

The IsLocked property returns true when the related element is locked by the LockAttributes or LockAllAttributesExcept property.

The following code example demonstrates how to use the IsLocked property. This code example is part of a larger example provided for the PropertyInformation class.

// Display the IsLocked property.
Console.WriteLine("IsLocked: {0}", propertyItem.IsLocked);

.NET Framework
Available since 2.0
Return to top