计划将在指定的虚拟时间执行的操作。
Namespace:Microsoft.Reactive.Testing
装配: Microsoft.Reactive.Testing.dll) 中的 Microsoft.Reactive.Testing (
语法
'Declaration
Public Overrides Function ScheduleAbsolute(Of TState) ( _
state As TState, _
dueTime As Long, _
action As Func(Of IScheduler, TState, IDisposable) _
) As IDisposable
'Usage
Dim instance As TestScheduler
Dim state As TState
Dim dueTime As Long
Dim action As Func(Of IScheduler, TState, IDisposable)
Dim returnValue As IDisposable
returnValue = instance.ScheduleAbsolute(state, _
dueTime, action)
public override IDisposable ScheduleAbsolute<TState>(
TState state,
long dueTime,
Func<IScheduler, TState, IDisposable> action
)
public:
generic<typename TState>
virtual IDisposable^ ScheduleAbsolute(
TState state,
long long dueTime,
Func<IScheduler^, TState, IDisposable^>^ action
) override
abstract ScheduleAbsolute :
state:'TState *
dueTime:int64 *
action:Func<IScheduler, 'TState, IDisposable> -> IDisposable
override ScheduleAbsolute :
state:'TState *
dueTime:int64 *
action:Func<IScheduler, 'TState, IDisposable> -> IDisposable
JScript does not support generic types and methods.
类型参数
- TState
状态的类型。
parameters
- state
类型:TState
传递给要执行的操作的状态。
- dueTime
类型: System.Int64
执行操作的绝对虚拟时间。
- action
类型: System.Func<IScheduler、TState、 IDisposable>
要执行的操作。
返回值
类型: System.IDisposable
用于取消计划操作的可释放对象。