DataflowBlock.LinkTo Méthode

Définition

Surcharges

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

Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs

Lie le ISourceBlock<TOutput> fichier vers le fichier spécifié ITargetBlock<TInput>.

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

Paramètres de type

TOutput

Spécifie le type de données contenues dans la source.

Paramètres

source
ISourceBlock<TOutput>

Source à partir de laquelle lier.

target
ITargetBlock<TOutput>

ITargetBlock<TInput> Auquel connecter la source.

Retours

Une IDisposable opération qui, lors de l’appel Dispose, dissocie la source de la cible.

Exceptions

source a la valeur null.

- ou -

target a la valeur null.

S’applique à

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

Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs

Lie le ISourceBlock<TOutput> vers le filtre ITargetBlock<TInput> spécifié à l’aide du filtre spécifié.

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

Paramètres de type

TOutput

Spécifie le type de données contenues dans la source.

Paramètres

source
ISourceBlock<TOutput>

Source à partir de laquelle lier.

target
ITargetBlock<TOutput>

ITargetBlock<TInput> Auquel connecter la source.

predicate
Predicate<TOutput>

Le filtre qu’un message doit transmettre pour qu’il se propage de la source à la cible.

Retours

Une IDisposable opération qui, lors de l’appel Dispose, dissocie la source de la cible.

Exceptions

source a la valeur null.

- ou -

target a la valeur null.

- ou -

predicate a la valeur null.

S’applique à

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

Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs
Source:
DataflowBlock.cs

Lie le ISourceBlock<TOutput> vers le filtre ITargetBlock<TInput> spécifié à l’aide du filtre spécifié.

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

Paramètres de type

TOutput

Spécifie le type de données contenues dans la source.

Paramètres

source
ISourceBlock<TOutput>

Source à partir de laquelle lier.

target
ITargetBlock<TOutput>

ITargetBlock<TInput> Auquel connecter la source.

linkOptions
DataflowLinkOptions

Une des valeurs d’énumération qui spécifie comment configurer un lien entre des blocs de flux de données.

predicate
Predicate<TOutput>

Le filtre qu’un message doit transmettre pour qu’il se propage de la source à la cible.

Retours

Une IDisposable opération qui, lors de l’appel Dispose, dissocie la source de la cible.

Exceptions

Le source a la valeur Null (Nothing in Visual Basic).

- ou -

Le target a la valeur Null (Nothing in Visual Basic).

- ou -

Le linkOptions a la valeur Null (Nothing in Visual Basic).

- ou -

Le predicate a la valeur Null (Nothing in Visual Basic).

S’applique à