Notification.CreateOnError<T> 方法

创建一个 对象,该对象表示向观察者发送的 OnError 通知。

Namespace:System.Reactive
装配: System.Reactive.dll) 中的 System.Reactive (

语法

'Declaration
Public Shared Function CreateOnError(Of T) ( _
    error As Exception _
) As Notification(Of T)
'Usage
Dim error As Exception
Dim returnValue As Notification(Of T)

returnValue = Notification.CreateOnError(error)
public static Notification<T> CreateOnError<T>(
    Exception error
)
public:
generic<typename T>
static Notification<T>^ CreateOnError(
    Exception^ error
)
static member CreateOnError : 
        error:Exception -> Notification<'T> 
JScript does not support generic types and methods.

类型参数

  • T
    通知参数类型。

参数

返回值

类型: System.Reactive.Notification<T>
包含异常的 OnError 通知。

另请参阅

参考

Notification 类

System.Reactive 命名空间