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

适用于