DataflowBlock.LinkTo Methode

Definition

Überlädt

LinkTo<TOutput>(ISourceBlock<TOutput>, ITargetBlock<TOutput>)

Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs

Verknüpft den ISourceBlock<TOutput> angegebenen ITargetBlock<TInput>Wert.

public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
 static IDisposable ^ LinkTo(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source, System::Threading::Tasks::Dataflow::ITargetBlock<TOutput> ^ target);
public static IDisposable LinkTo<TOutput>(this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source, System.Threading.Tasks.Dataflow.ITargetBlock<TOutput> target);
static member LinkTo : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> * System.Threading.Tasks.Dataflow.ITargetBlock<'Output> -> IDisposable
<Extension()>
Public Function LinkTo(Of TOutput) (source As ISourceBlock(Of TOutput), target As ITargetBlock(Of TOutput)) As IDisposable

Typparameter

TOutput

Gibt den Datentyp an, der in der Quelle enthalten ist.

Parameter

source
ISourceBlock<TOutput>

Die Quelle, von der eine Verknüpfung hergestellt werden soll.

target
ITargetBlock<TOutput>

Der ITargetBlock<TInput> , mit dem die Quelle verbunden werden soll.

Gibt zurück

Durch IDisposable Aufrufen Disposewird die Verknüpfung der Quelle vom Ziel entfernt.

Ausnahmen

source ist null.

-oder-

target ist null.

Gilt für:

LinkTo<TOutput>(ISourceBlock<TOutput>, ITargetBlock<TOutput>, Predicate<TOutput>)

Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs

Verknüpft den ISourceBlock<TOutput> angegebenen Filter mit dem angegebenen ITargetBlock<TInput> Filter.

public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
 static IDisposable ^ LinkTo(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source, System::Threading::Tasks::Dataflow::ITargetBlock<TOutput> ^ target, Predicate<TOutput> ^ predicate);
public static IDisposable LinkTo<TOutput>(this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source, System.Threading.Tasks.Dataflow.ITargetBlock<TOutput> target, Predicate<TOutput> predicate);
static member LinkTo : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> * System.Threading.Tasks.Dataflow.ITargetBlock<'Output> * Predicate<'Output> -> IDisposable
<Extension()>
Public Function LinkTo(Of TOutput) (source As ISourceBlock(Of TOutput), target As ITargetBlock(Of TOutput), predicate As Predicate(Of TOutput)) As IDisposable

Typparameter

TOutput

Gibt den Datentyp an, der in der Quelle enthalten ist.

Parameter

source
ISourceBlock<TOutput>

Die Quelle, von der eine Verknüpfung hergestellt werden soll.

target
ITargetBlock<TOutput>

Der ITargetBlock<TInput> , mit dem die Quelle verbunden werden soll.

predicate
Predicate<TOutput>

Der Filter einer Nachricht muss übergeben werden, damit sie von der Quelle an das Ziel weitergegeben werden kann.

Gibt zurück

Durch IDisposable Aufrufen Disposewird die Verknüpfung der Quelle vom Ziel entfernt.

Ausnahmen

source ist null.

-oder-

target ist null.

-oder-

predicate ist null.

Gilt für:

LinkTo<TOutput>(ISourceBlock<TOutput>, ITargetBlock<TOutput>, DataflowLinkOptions, Predicate<TOutput>)

Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs
Quelle:
DataflowBlock.cs

Verknüpft den ISourceBlock<TOutput> angegebenen Filter mit dem angegebenen ITargetBlock<TInput> Filter.

public:
generic <typename TOutput>
[System::Runtime::CompilerServices::Extension]
 static IDisposable ^ LinkTo(System::Threading::Tasks::Dataflow::ISourceBlock<TOutput> ^ source, System::Threading::Tasks::Dataflow::ITargetBlock<TOutput> ^ target, System::Threading::Tasks::Dataflow::DataflowLinkOptions ^ linkOptions, Predicate<TOutput> ^ predicate);
public static IDisposable LinkTo<TOutput>(this System.Threading.Tasks.Dataflow.ISourceBlock<TOutput> source, System.Threading.Tasks.Dataflow.ITargetBlock<TOutput> target, System.Threading.Tasks.Dataflow.DataflowLinkOptions linkOptions, Predicate<TOutput> predicate);
static member LinkTo : System.Threading.Tasks.Dataflow.ISourceBlock<'Output> * System.Threading.Tasks.Dataflow.ITargetBlock<'Output> * System.Threading.Tasks.Dataflow.DataflowLinkOptions * Predicate<'Output> -> IDisposable
<Extension()>
Public Function LinkTo(Of TOutput) (source As ISourceBlock(Of TOutput), target As ITargetBlock(Of TOutput), linkOptions As DataflowLinkOptions, predicate As Predicate(Of TOutput)) As IDisposable

Typparameter

TOutput

Gibt den Datentyp an, der in der Quelle enthalten ist.

Parameter

source
ISourceBlock<TOutput>

Die Quelle, von der eine Verknüpfung hergestellt werden soll.

target
ITargetBlock<TOutput>

Der ITargetBlock<TInput> , mit dem die Quelle verbunden werden soll.

linkOptions
DataflowLinkOptions

Einer der Enumerationswerte, der angibt, wie eine Verknüpfung zwischen Datenflowblöcken konfiguriert wird.

predicate
Predicate<TOutput>

Der Filter einer Nachricht muss übergeben werden, damit sie von der Quelle an das Ziel weitergegeben werden kann.

Gibt zurück

Durch IDisposable Aufrufen Disposewird die Verknüpfung der Quelle vom Ziel entfernt.

Ausnahmen

Die source ist NULL (Nichts in Visual Basic).

-oder-

Die target ist NULL (Nichts in Visual Basic).

-oder-

Die linkOptions ist NULL (Nichts in Visual Basic).

-oder-

Die predicate ist NULL (Nichts in Visual Basic).

Gilt für: