Partager via


Notification.ToObservable<T>, méthode (Notification<T>, IScheduler)

Espace de noms :  Microsoft.Phone.Reactive
Assembly :  Microsoft.Phone.Reactive (dans Microsoft.Phone.Reactive.dll)

Syntaxe

'Déclaration
<ExtensionAttribute> _
Public Shared Function ToObservable(Of T) ( _
    notification As Notification(Of T), _
    scheduler As IScheduler _
) As IObservable(Of T)
public static IObservable<T> ToObservable<T>(
    this Notification<T> notification,
    IScheduler scheduler
)
[ExtensionAttribute]
public:
generic<typename T>
static IObservable<T>^ ToObservable(
    Notification<T>^ notification, 
    IScheduler^ scheduler
)
static member ToObservable : 
        notification:Notification<'T> * 
        scheduler:IScheduler -> IObservable<'T> 

Paramètres de type

  • T

Paramètres

Valeur de retour

Type : System.IObservable<T>

Remarque sur l'utilisation

En Visual Basic et C#, vous pouvez appeler cette méthode comme une méthode d'instance sur n'importe quel objet de type Notification<T>. Lorsque vous utilisez la syntaxe des méthodes d'instance pour appeler cette méthode, omettez le premier paramètre. Pour plus d'informations, consultez Méthodes d'extension (Visual Basic) ou Méthodes d'extension (Guide de programmation C#).

Informations de version

.NET pour les applications Windows Phone

Pris en charge dans : Windows Phone 8, Silverlight 8.1

Sécurité .NET Framework

Voir aussi

Référence

Notification Classe

ToObservable, surcharge

Microsoft.Phone.Reactive, espace de noms