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.

DataflowBlock::AsObservable<TOutput> Method (ISourceBlock<TOutput>^)

 

Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.

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

public:
generic<typename TOutput>
[ExtensionAttribute]
static IObservable<TOutput>^ AsObservable(
	ISourceBlock<TOutput>^ source
)

Parameters

source
Type: System.Threading.Tasks.Dataflow::ISourceBlock<TOutput>^

The source to wrap.

Return Value

Type: System::IObservable<TOutput>^

An IObservable<T> that enables observers to be subscribed to the source.

Type Parameters

TOutput

Specifies the type of data contained in the source.

Exception Condition
ArgumentNullException

The source is null.

Return to top
Show:
© 2017 Microsoft