Export (0) Print
Expand All

Observable.Throw(Of TResult) Method (Exception)

Returns an observable sequence that terminates with an exception.

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

'Declaration
Public Shared Function Throw(Of TResult) ( _
	exception As Exception _
) As IObservable(Of TResult)
'Usage
Dim exception As Exception
Dim returnValue As IObservable(Of TResult)

returnValue = Observable.Throw(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(Of TResult)
Observable sequence that terminates exceptionally with the specified exception object.
Show:
© 2014 Microsoft