BatchedJoinBlock<T1,T2>.LinkTo 方法

定义

ISourceBlock<TOutput> 链接到指定的 ITargetBlock<TInput>

public:
 virtual IDisposable ^ LinkTo(System::Threading::Tasks::Dataflow::ITargetBlock<Tuple<System::Collections::Generic::IList<T1> ^, System::Collections::Generic::IList<T2> ^> ^> ^ target, System::Threading::Tasks::Dataflow::DataflowLinkOptions ^ linkOptions);
public IDisposable LinkTo (System.Threading.Tasks.Dataflow.ITargetBlock<Tuple<System.Collections.Generic.IList<T1>,System.Collections.Generic.IList<T2>>> target, System.Threading.Tasks.Dataflow.DataflowLinkOptions linkOptions);
abstract member LinkTo : System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>> * System.Threading.Tasks.Dataflow.DataflowLinkOptions -> IDisposable
override this.LinkTo : System.Threading.Tasks.Dataflow.ITargetBlock<System.Collections.Generic.IList<'T1> * System.Collections.Generic.IList<'T2>> * System.Threading.Tasks.Dataflow.DataflowLinkOptions -> IDisposable
Public Function LinkTo (target As ITargetBlock(Of Tuple(Of IList(Of T1), IList(Of T2))), linkOptions As DataflowLinkOptions) As IDisposable

参数

target
ITargetBlock<Tuple<IList<T1>,IList<T2>>>

此源连接到的 ITargetBlock<TInput>

linkOptions
DataflowLinkOptions

DataflowLinkOptions 实例,用于配置链接。

返回

IDisposable

根据调用 Dispose 将取消与目标中源的链接的 IDisposable。

实现

例外

targetnull(在 Visual Basic 中为 Nothing),或者 linkOptionsnull(在 Visual Basic 中为 Nothing)。

适用于