ReactiveTest.OnError<T> Method
Factory method for a recorded OnError notification at a given time with a given error.
Namespace: Microsoft.Reactive.Testing
Assembly: 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.
Type Parameters
- T
Parameters
- ticks
Type: System.Int64
Recorded virtual time the OnError notification occurs.
- exception
Type: System.Exception
Recorded exception stored in the OnError notification.
Return Value
Type: Microsoft.Reactive.Testing.Recorded<Notification<T>>
Recorded OnError notification.