Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActionBlock<TInput>::Complete Method ()

 

Signals to the dataflow block that it shouldn't accept or produce any more messages and shouldn't consume any more postponed messages.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

public:
virtual void Complete() sealed

After Complete has been called on a dataflow block, that block will complete (so that its Completion task will enter a final state) after it has processed all previously available data. This method will not block waiting for completion to occur, but will initiate the request. To wait for completion to occur, use the Completion property.

The following example shows the use of the Complete method to signal to the dataflow block that it shouldn't accept or produce any more messages nor consume any more postponed messages . This code example is part of a larger example provided for the How to: Specify the Degree of Parallelism in a Dataflow Block topic.

No code example is currently available or this language may not be supported.
Return to top
Show:
© 2017 Microsoft