Qbservable.Finally<TSource> Method

Invokes a specified action after source observable sequence terminates normally or by an exception.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function Finally(Of TSource) ( _
    source As IQbservable(Of TSource), _
    finallyAction As Expression(Of Action) _
) As IQbservable(Of TSource)
'Usage
Dim source As IQbservable(Of TSource)
Dim finallyAction As Expression(Of Action)
Dim returnValue As IQbservable(Of TSource)

returnValue = source.Finally(finallyAction)
public static IQbservable<TSource> Finally<TSource>(
    this IQbservable<TSource> source,
    Expression<Action> finallyAction
)
[ExtensionAttribute]
public:
generic<typename TSource>
static IQbservable<TSource>^ Finally(
    IQbservable<TSource>^ source, 
    Expression<Action^>^ finallyAction
)
static member Finally : 
        source:IQbservable<'TSource> * 
        finallyAction:Expression<Action> -> IQbservable<'TSource> 
JScript does not support generic types and methods.

Type Parameters

  • TSource
    The type of source.

Parameters

Return Value

Type: System.Reactive.Linq.IQbservable<TSource>
Source sequence with the action-invoking termination behavior applied.

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 or .

See Also

Reference

Qbservable Class

System.Reactive.Linq Namespace