The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.


Qbservable.OfType<TResult> Method

Filters the elements of a queryable observable sequence based on the specified type.

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


<ExtensionAttribute> _
Public Shared Function OfType(Of TResult) ( _
    source As IQbservable(Of Object) _
) As IQbservable(Of TResult)
Dim source As IQbservable(Of Object)
Dim returnValue As IQbservable(Of TResult)

returnValue = source.OfType()
public static IQbservable<TResult> OfType<TResult>(
    this IQbservable<Object> source
generic<typename TResult>
static IQbservable<TResult>^ OfType(
    IQbservable<Object^>^ source
static member OfType : 
        source:IQbservable<Object> -> IQbservable<'TResult> 
JScript does not support generic types and methods.

Type Parameters

  • TResult
    The type of result.


Return Value

Type: System.Reactive.Linq.IQbservable<TResult>
A queryable observable sequence that contains elements from the input sequence of type TResult.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IQbservable<Object>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also


Qbservable Class

System.Reactive.Linq Namespace