BroadcastBlock<T> 构造函数

定义

重载

BroadcastBlock<T>(Func<T,T>)

用指定的克隆函数初始化 BroadcastBlock<T>

BroadcastBlock<T>(Func<T,T>, DataflowBlockOptions)

BroadcastBlock<T>使用指定的克隆函数 和 DataflowBlockOptions初始化 。

BroadcastBlock<T>(Func<T,T>)

Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs

用指定的克隆函数初始化 BroadcastBlock<T>

public:
 BroadcastBlock(Func<T, T> ^ cloningFunction);
public BroadcastBlock (Func<T,T> cloningFunction);
public BroadcastBlock (Func<T,T>? cloningFunction);
new System.Threading.Tasks.Dataflow.BroadcastBlock<'T> : Func<'T, 'T> -> System.Threading.Tasks.Dataflow.BroadcastBlock<'T>
Public Sub New (cloningFunction As Func(Of T, T))

参数

cloningFunction
Func<T,T>

用以在提供给其他块时克隆数据的函数。

适用于

BroadcastBlock<T>(Func<T,T>, DataflowBlockOptions)

Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs
Source:
BroadcastBlock.cs

BroadcastBlock<T>使用指定的克隆函数 和 DataflowBlockOptions初始化 。

public:
 BroadcastBlock(Func<T, T> ^ cloningFunction, System::Threading::Tasks::Dataflow::DataflowBlockOptions ^ dataflowBlockOptions);
public BroadcastBlock (Func<T,T> cloningFunction, System.Threading.Tasks.Dataflow.DataflowBlockOptions dataflowBlockOptions);
public BroadcastBlock (Func<T,T>? cloningFunction, System.Threading.Tasks.Dataflow.DataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.BroadcastBlock<'T> : Func<'T, 'T> * System.Threading.Tasks.Dataflow.DataflowBlockOptions -> System.Threading.Tasks.Dataflow.BroadcastBlock<'T>
Public Sub New (cloningFunction As Func(Of T, T), dataflowBlockOptions As DataflowBlockOptions)

参数

cloningFunction
Func<T,T>

用以在提供给其他块时克隆数据的函数。

dataflowBlockOptions
DataflowBlockOptions

用来配置此 BroadcastBlock<T>的选项。

例外

dataflowBlockOptionsnull

适用于