Catch__1_4 - waf/Rx.NET GitHub Wiki

QueryableEx.Catch<TSource> Method (IQueryable<TSource>, IEnumerable<TSource>)

Creates a sequence that returns the elements of the first sequence, switching to the second in case of an error.

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

Syntax

public static IQueryable<TSource> Catch<TSource>(
	this IQueryable<TSource> first,
	IEnumerable<TSource> second
)

Parameters

first

Type: System.Linq.IQueryable<TSource>
First sequence.

second

Type: System.Collections.Generic.IEnumerable<TSource>
Second sequence, concatenated to the result in case the first sequence completes exceptionally.

Type Parameters

TSource

Source sequence element type.

Return Value

Type: IQueryable<TSource>
The first sequence, followed by the second sequence in case an error is produced.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQueryable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

QueryableEx Class
System.Linq Namespace

⚠️ **GitHub.com Fallback** ⚠️