Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataflowBlock.NullTarget<TInput> Method

.NET Framework 4.6 and 4.5

Gets a target block that synchronously accepts all messages offered to it and drops them.

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

public static ITargetBlock<TInput> NullTarget<TInput>()

Type Parameters


The type of the messages this block can accept.

Return Value

Type: System.Threading.Tasks.Dataflow.ITargetBlock<TInput>
A ITargetBlock<TInput> that accepts and subsequently drops all offered messages.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft