BroadcastBlock<T> Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
BroadcastBlock<T>(Func<T,T>) |
Initializes the BroadcastBlock<T> with the specified cloning function. |
BroadcastBlock<T>(Func<T,T>, DataflowBlockOptions) |
Initializes the BroadcastBlock<T> with the specified cloning function and DataflowBlockOptions. |
- Source:
- BroadcastBlock.cs
- Source:
- BroadcastBlock.cs
- Source:
- BroadcastBlock.cs
- Source:
- BroadcastBlock.cs
Initializes the BroadcastBlock<T> with the specified cloning function.
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))
Parameters
- cloningFunction
- Func<T,T>
The function to use to clone the data when offered to other blocks.
Applies to
.NET 10 والإصدارات الأخرى
منتج | الإصدارات |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
UWP | 10.0 |
- Source:
- BroadcastBlock.cs
- Source:
- BroadcastBlock.cs
- Source:
- BroadcastBlock.cs
- Source:
- BroadcastBlock.cs
Initializes the BroadcastBlock<T> with the specified cloning function and 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)
Parameters
- cloningFunction
- Func<T,T>
The function to use to clone the data when offered to other blocks.
- dataflowBlockOptions
- DataflowBlockOptions
The options with which to configure this BroadcastBlock<T>.
Exceptions
The dataflowBlockOptions
is null
.
Applies to
.NET 10 والإصدارات الأخرى
منتج | الإصدارات |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10 |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
UWP | 10.0 |
ملاحظات .NET
.NET هو مشروع مصدر مفتوح. حدد رابطًا لتقديم الملاحظات: