Notification.CreateOnError < T > 方法
建立 物件,此物件表示對觀察者的 OnError 通知。
Namespace:System.Reactive
裝配: System.Reactive.dll) 中的 System.Reactive (
Syntax
'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
通知引數類型。
參數
- error
類型: System.Exception
通知中包含的例外狀況。
傳回值
類型:System.Reactive.Notification< T>
包含例外狀況的 OnError 通知。