共用方式為


WriteOnceBlock<T> 建構函式

定義

多載

WriteOnceBlock<T>(Func<T,T>)

初始化新的 WriteOnceBlock<T>

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

使用指定的 DataflowBlockOptions,將新的 WriteOnceBlock<T> 初始化。

WriteOnceBlock<T>(Func<T,T>)

初始化新的 WriteOnceBlock<T>

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

參數

cloningFunction
Func<T,T>

當提供資料給其他區塊時,用來複製資料的函式。

適用於

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

使用指定的 DataflowBlockOptions,將新的 WriteOnceBlock<T> 初始化。

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

參數

cloningFunction
Func<T,T>

當提供資料給其他區塊時,用來複製資料的函式。

dataflowBlockOptions
DataflowBlockOptions

用來設定這個WriteOnceBlock<T> 的選項。

例外狀況

dataflowBlockOptionsnull

適用於