DataflowBlock.LinkTo 메서드

정의

오버로드

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

ISourceBlock<TOutput>을 지정된 ITargetBlock<TInput>에 연결합니다.Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>.

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

지정된 필터를 사용하여 ISourceBlock<TOutput>을 지정된 ITargetBlock<TInput>에 연결합니다.Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter.

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

지정된 필터를 사용하여 ISourceBlock<TOutput>을 지정된 ITargetBlock<TInput>에 연결합니다.Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter.

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

ISourceBlock<TOutput>을 지정된 ITargetBlock<TInput>에 연결합니다.Links the ISourceBlock<TOutput> to the specified 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

형식 매개 변수

TOutput

소스에 포함된 데이터 형식을 지정합니다.Specifies the type of data contained in the source.

매개 변수

source
ISourceBlock<TOutput>

링크할 소스입니다.The source from which to link.

target
ITargetBlock<TOutput>

소스를 연결할 ITargetBlock<TInput>입니다.The ITargetBlock<TInput> to which to connect the source.

반환

IDisposable

Dispose 호출 시 대상에서 소스의 연결을 해제할 IDisposable입니다.An IDisposable that, upon calling Dispose, will unlink the source from the target.

예외

sourcenull인 경우The source is null.

또는-or- targetnull인 경우The target is null.

적용 대상

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

지정된 필터를 사용하여 ISourceBlock<TOutput>을 지정된 ITargetBlock<TInput>에 연결합니다.Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified 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

형식 매개 변수

TOutput

소스에 포함된 데이터 형식을 지정합니다.Specifies the type of data contained in the source.

매개 변수

source
ISourceBlock<TOutput>

링크할 소스입니다.The source from which to link.

target
ITargetBlock<TOutput>

소스를 연결할 ITargetBlock<TInput>입니다.The ITargetBlock<TInput> to which to connect the source.

predicate
Predicate<TOutput>

메시지를 소스에서 대상까지 전파하도록 전달해야 하는 필터입니다.The filter a message must pass in order for it to propagate from the source to the target.

반환

IDisposable

Dispose 호출 시 대상에서 소스의 연결을 해제할 IDisposable입니다.An IDisposable that, upon calling Dispose, will unlink the source from the target.

예외

sourcenull인 경우The source is null.

또는-or- targetnull인 경우The target is null.

또는-or- predicatenull인 경우The predicate is null.

적용 대상

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

지정된 필터를 사용하여 ISourceBlock<TOutput>을 지정된 ITargetBlock<TInput>에 연결합니다.Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified 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

형식 매개 변수

TOutput

소스에 포함된 데이터 형식을 지정합니다.Specifies the type of data contained in the source.

매개 변수

source
ISourceBlock<TOutput>

링크할 소스입니다.The source from which to link.

target
ITargetBlock<TOutput>

소스를 연결할 ITargetBlock<TInput>입니다.The ITargetBlock<TInput> to which to connect the source.

linkOptions
DataflowLinkOptions

데이터 흐름 블록 사이의 링크를 구성하는 방법을 지정하는 열거형 값 중 하나입니다.One of the enumeration values that specifies how to configure a link between dataflow blocks.

predicate
Predicate<TOutput>

메시지를 소스에서 대상까지 전파하도록 전달해야 하는 필터입니다.The filter a message must pass in order for it to propagate from the source to the target.

반환

IDisposable

Dispose 호출 시 대상에서 소스의 연결을 해제할 IDisposable입니다.An IDisposable that, upon calling Dispose, will unlink the source from the target.

예외

source은 null(Visual Basic에서는 Nothing)입니다.The source is null (Nothing in Visual Basic).

또는-or- target은 null(Visual Basic에서는 Nothing)입니다.The target is null (Nothing in Visual Basic).

또는-or- linkOptions은 null(Visual Basic에서는 Nothing)입니다.The linkOptions is null (Nothing in Visual Basic).

또는-or- predicate은 null(Visual Basic에서는 Nothing)입니다.The predicate is null (Nothing in Visual Basic).

적용 대상