BlockingCollection<T>.CompleteAdding 方法

定義

BlockingCollection<T> 執行個體標記為不再接受任何加入項目。Marks the BlockingCollection<T> instances as not accepting any more additions.

public:
 void CompleteAdding();
public void CompleteAdding ();
member this.CompleteAdding : unit -> unit
Public Sub CompleteAdding ()

例外狀況

備註

將集合標記為加入完成後,不允許將加入至集合,而且當集合是空的時,從集合中移除的嘗試將不會等候。After a collection has been marked as complete for adding, adding to the collection is not permitted and attempts to remove from the collection will not wait when the collection is empty.

適用於

另請參閱