共用方式為


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

IDisposable,在呼叫 Dispose 時,將會取消來源和目標間的連結。

實作

例外狀況

targetnull (在 Visual Basic 中為 Nothing) 或 linkOptionsnull (在 Visual Basic 中為 Nothing)。

適用於