Språk

ConfigurationLockCollection.Count Egenskap

Definition

Hämtar antalet låsta konfigurationsobjekt som finns i samlingen.

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

Egenskapsvärde

Antalet låsta konfigurationsobjekt som finns i samlingen.

Implementeringar

Exempel

Följande kodexempel visar hur du använder egenskapen Count . Det här kodexemplet är en del av ett större exempel för ConfigurationLockCollection klassen.

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

Gäller för