ConcurrentQueue<T>.Count 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
得到包含於 的 ConcurrentQueue<T>元素數量。
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
屬性值
包含於 ConcurrentQueue<T>的元素數量。
實作
備註
判斷收藏中是否包含任何物品時,建議使用該 IsEmpty 物業,而非從該物業取得物品 Count 數量並與 0 比較。