DataflowBlock.NullTarget<TInput> Method

.NET Framework (current version)

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