Observable.OfType<TResult> Method
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function OfType(Of TResult) ( _
source As IObservable(Of Object) _
) As IObservable(Of TResult)
public static IObservable<TResult> OfType<TResult>(
this IObservable<Object> source
)
[ExtensionAttribute]
public:
generic<typename TResult>
static IObservable<TResult>^ OfType(
IObservable<Object^>^ source
)
static member OfType :
source:IObservable<Object> -> IObservable<'TResult>
Type Parameters
- TResult
Parameters
- source
Type: System.IObservable<Object>
Return Value
Type: System.IObservable<TResult>
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<Object>. 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).
Version Information
.NET for Windows Phone apps
Supported in: Windows Phone 8, Silverlight 8.1
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.