語言

ConfigurationLockCollection.Count 屬性

定義

取得集合中所包含的鎖定配置物件數量。

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

屬性值

集合中所包含的鎖定配置物件數量。

實作

範例

以下程式碼範例示範如何使用該 Count 屬性。 此程式碼範例是本類別更大範例 ConfigurationLockCollection 的一部分。

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

適用於