Observable.Case<TValue, TResult> 方法 (Func<TValue>, IDictionary<TValue, IObservable<TResult>>, IObservable<TResult>)

命名空间:  Microsoft.Phone.Reactive
程序集:  Microsoft.Phone.Reactive(在 Microsoft.Phone.Reactive.dll 中)

语法

声明
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> 

类型参数

  • TValue
  • TResult

参数

返回值

类型:System.IObservable<TResult>

版本信息

适用于 Windows Phone 应用的 .NET

受以下版本支持:Windows Phone 8、Silverlight 8.1

.NET Framework 安全性

请参阅

参考

Observable 类

Case 重载

Microsoft.Phone.Reactive 命名空间