DataflowBlock.NullTarget<TInput> 方法
定义
获取目标块,此目标块能同步接收为其提供的所有信息并放置它们。Gets a target block that synchronously accepts all messages offered to it and drops them.
public:
generic <typename TInput>
static System::Threading::Tasks::Dataflow::ITargetBlock<TInput> ^ NullTarget();
public static System.Threading.Tasks.Dataflow.ITargetBlock<TInput> NullTarget<TInput> ();
static member NullTarget : unit -> System.Threading.Tasks.Dataflow.ITargetBlock<'Input>
Public Function NullTarget(Of TInput) () As ITargetBlock(Of TInput)
类型参数
- TInput
该块可以接受消息的类型。The type of the messages this block can accept.
返回
ITargetBlock<TInput> 接受并后续放置所有提供的信息。A ITargetBlock<TInput> that accepts and subsequently drops all offered messages.