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)

適用於