Partager via


BufferBlock<T>.LinkTo Méthode

Définition

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

Paramètres

target
ITargetBlock<T>

ITargetBlock<TInput> auquel connecter cette source.

linkOptions
DataflowLinkOptions

Instance DataflowLinkOptions qui configure le lien.

Retours

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

Implémente

Exceptions

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

S’applique à