ConcurrentBag<T>.Count 屬性

定義

取得 ConcurrentBag<T> 中所包含的項目數。

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

屬性值

ConcurrentBag<T> 中所包含的項目數。

實作

備註

傳回的計數代表包內容的時時快照集。 其他線程可能會在存取 Count 屬性之後立即新增或移除專案。

適用於

另請參閱