BroadcastBlock<T>.LinkTo(ITargetBlock<T>, DataflowLinkOptions) Método

Definição

Vincula o ISourceBlock<TOutput> ao ITargetBlock<TInput> especificado.Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>.

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

Parâmetros

target
ITargetBlock<T>

O ITargetBlock<TInput> ao qual essa fonte será conectada.The ITargetBlock<TInput> to which to connect this source.

linkOptions
DataflowLinkOptions

Uma instância DataflowLinkOptions que configura o link.A DataflowLinkOptions instance that configures the link.

Retornos

IDisposable

Um IDisposable que, após chamar Dispose, desvinculará a origem do destino.An IDisposable that, upon calling Dispose, will unlink the source from the target.

Implementações

Exceções

target é nulo (Nothing no Visual Basic) ou linkOptions é nulo (Nothing no Visual Basic).target is null (Nothing in Visual Basic) or linkOptions is null (Nothing in Visual Basic).

Aplica-se a