Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Qbservable.Catch(TSource, TException) Method (IQbservable(TSource), Expression(Func(TException, IObservable(TSource))))

Continues a queryable observable sequence that is terminated by an exception of the specified type with the queryable observable sequence produced by the handler.

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

static member Catch : 
        source:IQbservable<'TSource> * 
        handler:Expression<Func<'TException, IObservable<'TSource>>> -> IQbservable<'TSource> 

Type Parameters


The type of source.


The type of the exception.


Type: System.Reactive.Linq.IQbservable(TSource)
The source sequence.
Type: System.Linq.Expressions.Expression(Func(TException, IObservable(TSource)))
The exception handler function, producing another queryable observable sequence.

Return Value

Type: System.Reactive.Linq.IQbservable(TSource)
A queryable observable sequence containing the source sequence's elements, followed by the elements produced by the handler's resulting queryable observable sequence in case an exception occurred.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable(TSource). When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.103).aspx or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.103).aspx.
© 2015 Microsoft