Partager via


ISourceBlock<TOutput>.LinkTo Méthode

Définition

public:
 IDisposable ^ LinkTo(System::Threading::Tasks::Dataflow::ITargetBlock<TOutput> ^ target, System::Threading::Tasks::Dataflow::DataflowLinkOptions ^ linkOptions);
public IDisposable LinkTo (System.Threading.Tasks.Dataflow.ITargetBlock<out TOutput> target, System.Threading.Tasks.Dataflow.DataflowLinkOptions linkOptions);
abstract member LinkTo : System.Threading.Tasks.Dataflow.ITargetBlock<'Output> * System.Threading.Tasks.Dataflow.DataflowLinkOptions -> IDisposable
Public Function LinkTo (target As ITargetBlock(Of Out TOutput), linkOptions As DataflowLinkOptions) As IDisposable

Paramètres

target
ITargetBlock<TOutput>

ITargetBlock<TInput> auquel connecter cette source.

linkOptions
DataflowLinkOptions

Instance DataflowLinkOptions qui configure le lien.

Retours

IDisposable

IDisposable qui, en appelant Dispose, dissocie la source de la cible.

Exceptions

target est Null (Nothing en Visual Basic) ou linkOptions est Null (Nothing en Visual Basic).

S’applique à