共用方式為


BroadcastBlock<T> 建構函式

定義

多載

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

使用指定的複製函式初始化 BroadcastBlock<T>

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

BroadcastBlock<T>使用指定的複製函式和 DataflowBlockOptions ,初始化 。

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

來源:
BroadcastBlock.cs
來源:
BroadcastBlock.cs
來源:
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)

來源:
BroadcastBlock.cs
來源:
BroadcastBlock.cs
來源:
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

適用於