ConfigurationLockCollection.HasParentElements Property


Gets a value specifying whether the collection of locked objects has parent elements.

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

public bool HasParentElements { get; }

Property Value

Type: System.Boolean

true if the ConfigurationLockCollection collection has parent elements; otherwise, false.

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

// HasParentElements property.
Console.WriteLine("HasParentElements: {0}",

.NET Framework
Available since 2.0
Return to top