Partager via


Observable.Case<TValue, TResult>, méthode (Func<TValue>, IDictionary<TValue, IObservable<TResult>>, IObservable<TResult>)

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

Syntaxe

'Déclaration
Public Shared Function Case(Of TValue, TResult) ( _
    selector As Func(Of TValue), _
    sources As IDictionary(Of TValue, IObservable(Of TResult)), _
    defaultSource As IObservable(Of TResult) _
) As IObservable(Of TResult)
public static IObservable<TResult> Case<TValue, TResult>(
    Func<TValue> selector,
    IDictionary<TValue, IObservable<TResult>> sources,
    IObservable<TResult> defaultSource
)
public:
generic<typename TValue, typename TResult>
static IObservable<TResult>^ Case(
    Func<TValue>^ selector, 
    IDictionary<TValue, IObservable<TResult>^>^ sources, 
    IObservable<TResult>^ defaultSource
)
static member Case : 
        selector:Func<'TValue> * 
        sources:IDictionary<'TValue, IObservable<'TResult>> * 
        defaultSource:IObservable<'TResult> -> IObservable<'TResult> 

Paramètres de type

  • TValue
  • TResult

Paramètres

Valeur de retour

Type : System.IObservable<TResult>

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

Observable Classe

Case, surcharge

Microsoft.Phone.Reactive, espace de noms