Freigeben über


Observable.Using<TSource, TResource>-Methode

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

Syntax

'Declaration
Public Shared Function Using(Of TSource, TResource As IDisposable) ( _
    resourceSelector As Func(Of TResource), _
    resourceUsage As Func(Of TResource, IObservable(Of TSource)) _
) As IObservable(Of TSource)
public static IObservable<TSource> Using<TSource, TResource>(
    Func<TResource> resourceSelector,
    Func<TResource, IObservable<TSource>> resourceUsage
)
where TResource : IDisposable
public:
generic<typename TSource, typename TResource>
where TResource : IDisposable
static IObservable<TSource>^ Using(
    Func<TResource>^ resourceSelector, 
    Func<TResource, IObservable<TSource>^>^ resourceUsage
)
static member Using : 
        resourceSelector:Func<'TResource> * 
        resourceUsage:Func<'TResource, IObservable<'TSource>> -> IObservable<'TSource>  when 'TResource : IDisposable

Typparameter

  • TSource
  • TResource

Parameter

Rückgabewert

Typ: System.IObservable<TSource>

Versionsinformationen

.NET für Windows Phone-Apps

Unterstützt in: Windows Phone 8, Silverlight 8.1

.NET Framework-Sicherheit

Siehe auch

Referenz

Observable Klasse

Microsoft.Phone.Reactive-Namespace