ReactiveTest.OnError<T> 方法

给定时间记录的 OnError 通知的工厂方法,并出现给定错误。

Namespace:Microsoft.Reactive.Testing
装配: Microsoft.Reactive.Testing.dll) 中的 Microsoft.Reactive.Testing (

语法

'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

parameters

  • ticks
    类型: System.Int64
    发生 OnError 通知的虚拟记录时间。
  • exception
    类型: System.Exception
    记录的异常存储在 OnError 通知中。

返回值

类型: Microsoft.Reactive.Testing.Recorded<Notification<T>>
录制的 OnError 通知。

另请参阅

参考

ReactiveTest 类

Microsoft.Reactive.Testing 命名空间