Observable.CreateWithDisposable<TSource> Method
Namespace: Microsoft.Phone.Reactive
Assembly: Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)
Syntax
'Declaration
Public Shared Function CreateWithDisposable(Of TSource) ( _
subscribe As Func(Of IObserver(Of TSource), IDisposable) _
) As IObservable(Of TSource)
public static IObservable<TSource> CreateWithDisposable<TSource>(
Func<IObserver<TSource>, IDisposable> subscribe
)
public:
generic<typename TSource>
static IObservable<TSource>^ CreateWithDisposable(
Func<IObserver<TSource>^, IDisposable^>^ subscribe
)
static member CreateWithDisposable :
subscribe:Func<IObserver<'TSource>, IDisposable> -> IObservable<'TSource>
Type Parameters
- TSource
Parameters
- subscribe
Type: System.Func<IObserver<TSource>, IDisposable>
Return Value
Type: System.IObservable<TSource>
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.