共用方式為


BatchedJoinBlock<T1,T2,T3>.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> ^, System::Collections::Generic::IList<T3> ^> ^> ^ 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>,System.Collections.Generic.IList<T3>>> 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.Collections.Generic.IList<'T3>> * 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.Collections.Generic.IList<'T3>> * System.Threading.Tasks.Dataflow.DataflowLinkOptions -> IDisposable
Public Function LinkTo (target As ITargetBlock(Of Tuple(Of IList(Of T1), IList(Of T2), IList(Of T3))), linkOptions As DataflowLinkOptions) As IDisposable

參數

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

要將此來源連接至的 ITargetBlock<TInput>

linkOptions
DataflowLinkOptions

如果在順利散佈單一訊息之後來源應該取消和目標間的連結,則為 truefalse 表示即使在散佈單一訊息之後仍要保持連接。

傳回

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

實作

例外狀況

target (null Visual Basic 中的 Nothing) ,或 linkOptions 是在 null Visual Basic) 中 (Nothing。

適用於