語言

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 該物業後立即新增或移除物品。

適用於

另請參閱