ConfigurationLockCollection.Count Property

 

Gets the number of locked configuration objects contained in the collection.

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

public int Count { get; }

Property Value

Type: System.Int32

The number of locked configuration objects contained in the collection.

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

// Count property.
Console.WriteLine("Collection Count: {0}",
 lockedAttribList.Count);

.NET Framework
Available since 2.0
Return to top
Show: