共用方式為


ReactiveTest.OnError < T > 方法

指定時間記錄 OnError 通知的 Factory 方法,並出現指定的錯誤。

Namespace:Microsoft.Reactive.Testing
裝配: Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)

Syntax

'Declaration
Public Shared Function OnError(Of T) ( _
    ticks As Long, _
    exception As Exception _
) As Recorded(Of Notification(Of T))
'Usage
Dim ticks As Long
Dim exception As Exception
Dim returnValue As Recorded(Of Notification(Of T))

returnValue = ReactiveTest.OnError(ticks, _
    exception)
public static Recorded<Notification<T>> OnError<T>(
    long ticks,
    Exception exception
)
public:
generic<typename T>
static Recorded<Notification<T>^> OnError(
    long long ticks, 
    Exception^ exception
)
static member OnError : 
        ticks:int64 * 
        exception:Exception -> Recorded<Notification<'T>> 
JScript does not support generic types and methods.

類型參數

  • T

參數

  • 刻度
    類型: System.Int64
    OnError 通知的錄製虛擬時間。
  • exception
    類型: System.Exception
    儲存在 OnError 通知中的記錄例外狀況。

傳回值

類型:Microsoft.Reactive.Testing.Recorded<Notification< T>>
錄製的 OnError 通知。

另請參閱

參考

ReactiveTest 類別

Microsoft.Reactive.Testing 命名空間