Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

JoinBlock<T1, T2> Class

 

Provides a dataflow block that joins across multiple dataflow sources, not necessarily of the same type, waiting for one item to arrive for each type before they’re all released together as a tuple consisting of one item per type.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

System::Object
System.Threading.Tasks.Dataflow::JoinBlock<T1, T2>

generic<typename T1, typename T2>
public ref class JoinBlock sealed : IReceivableSourceBlock<Tuple<T1, T2>^>, 
	ISourceBlock<Tuple<T1, T2>^>, IDataflowBlock

Type Parameters

T1

Specifies the type of data accepted by the block's first target.

T2

Specifies the type of data accepted by the block's second target.

NameDescription
System_CAPS_pubmethodJoinBlock<T1, T2>()

Initializes a new JoinBlock<T1, T2>.

System_CAPS_pubmethodJoinBlock<T1, T2>(GroupingDataflowBlockOptions^)

Initializes a new JoinBlock<T1, T2>.

NameDescription
System_CAPS_pubpropertyCompletion

Gets a Task that represents the asynchronous operation and completion of the dataflow block.

System_CAPS_pubpropertyOutputCount

Gets the number of output items available to be received from this block.

System_CAPS_pubpropertyTarget1

Gets a target that may be used to offer messages of the first type.

System_CAPS_pubpropertyTarget2

Gets a target that may be used to offer messages of the second type.

NameDescription
System_CAPS_pubmethodComplete()

Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLinkTo(ITargetBlock<Tuple<T1, T2>^>^, DataflowLinkOptions^)

Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> .

System_CAPS_pubmethodToString()

Returns a string that represents the formatted name of this IDataflowBlock instance.(Overrides Object::ToString().)

System_CAPS_pubmethodTryReceive(Predicate<Tuple<T1, T2>^>^, Tuple<T1, T2>^)

Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>.

System_CAPS_pubmethodTryReceiveAll(IList<Tuple<T1, T2>^>^)

Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.

NameDescription
System_CAPS_pubmethodAsObservable<Tuple<T1, T2>^>()

Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.(Defined by DataflowBlock.)

System_CAPS_pubmethodLinkTo<Tuple<T1, T2>^>(ITargetBlock<Tuple<T1, T2>^>^)

Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Defined by DataflowBlock.)

System_CAPS_pubmethodLinkTo<Tuple<T1, T2>^>(ITargetBlock<Tuple<T1, T2>^>^, DataflowLinkOptions^, Predicate<Tuple<T1, T2>^>^)

Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)

System_CAPS_pubmethodLinkTo<Tuple<T1, T2>^>(ITargetBlock<Tuple<T1, T2>^>^, Predicate<Tuple<T1, T2>^>^)

Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)

System_CAPS_pubmethodOutputAvailableAsync<Tuple<T1, T2>^>()

Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output.(Defined by DataflowBlock.)

System_CAPS_pubmethodOutputAvailableAsync<Tuple<T1, T2>^>(CancellationToken)

Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<Tuple<T1, T2>^>()

Overloaded. Synchronously receives a value from a specified source.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<Tuple<T1, T2>^>(CancellationToken)

Overloaded. Synchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<Tuple<T1, T2>^>(TimeSpan)

Overloaded. Synchronously receives a value from a specified source, observing an optional time-out period.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<Tuple<T1, T2>^>(TimeSpan, CancellationToken)

Overloaded. Synchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<Tuple<T1, T2>^>()

Overloaded. Asynchronously receives a value from a specified source.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<Tuple<T1, T2>^>(CancellationToken)

Overloaded. Asynchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<Tuple<T1, T2>^>(TimeSpan)

Overloaded. Asynchronously receives a value from a specified source, observing an optional time-out period.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<Tuple<T1, T2>^>(TimeSpan, CancellationToken)

Overloaded. Asynchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.)

System_CAPS_pubmethodTryReceive<Tuple<T1, T2>^>(Tuple<T1, T2>^)

Attempts to synchronously receive an item from the ISourceBlock<TOutput>.(Defined by DataflowBlock.)

System_CAPS_noteNote

The TPL Dataflow Library (System.Threading.Tasks.Dataflow namespace) is not distributed with the .NET Framework 4.5. To install the N:System.Threading.Tasks.Dataflow namespace, open your project in Visual Studio 2012, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Tpl.Dataflow package.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2017 Microsoft