Observable::Throw<TResult> Method (Exception)

Returns an observable sequence that terminates with an exception.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

public:
generic<typename TResult>
static IObservable<TResult>^ Throw(
	Exception^ exception
)

Type Parameters

TResult

The type of result.

Parameters

exception
Type: System::Exception
The exception object used for the sequence’s termination.

Return Value

Type: System::IObservable<TResult>
Observable sequence that terminates exceptionally with the specified exception object.
Show: