BroadcastBlock<T> 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
BroadcastBlock<T>(Func<T,T>) |
使用指定的複製函式初始化 BroadcastBlock<T>。 |
BroadcastBlock<T>(Func<T,T>, DataflowBlockOptions) |
BroadcastBlock<T>使用指定的複製函式和 DataflowBlockOptions ,初始化 。 |
BroadcastBlock<T>(Func<T,T>)
使用指定的複製函式初始化 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<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> 的選項。
例外狀況
dataflowBlockOptions
為 null
。