Notification<T>.Accept<TResult> 方法 (Func<T, TResult>, Func<Exception, TResult>, Func<TResult>)

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

语法

声明
Public MustOverride Function Accept(Of TResult) ( _
    onNext As Func(Of T, TResult), _
    onError As Func(Of Exception, TResult), _
    onCompleted As Func(Of TResult) _
) As TResult
public abstract TResult Accept<TResult>(
    Func<T, TResult> onNext,
    Func<Exception, TResult> onError,
    Func<TResult> onCompleted
)
public:
generic<typename TResult>
virtual TResult Accept(
    Func<T, TResult>^ onNext, 
    Func<Exception^, TResult>^ onError, 
    Func<TResult>^ onCompleted
) abstract
abstract Accept : 
        onNext:Func<'T, 'TResult> * 
        onError:Func<Exception, 'TResult> * 
        onCompleted:Func<'TResult> -> 'TResult 

类型参数

  • TResult

参数

返回值

类型:TResult

版本信息

适用于 Windows Phone 应用的 .NET

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

.NET Framework 安全性

请参阅

参考

Notification<T> 类

Accept 重载

Microsoft.Phone.Reactive 命名空间