BroadcastBlock<T> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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>的选项。
例外
dataflowBlockOptions
为 null
。