IScheduler.Schedule<TState> 方法 (TState、Func<IScheduler、TState、IDisposable>)

计划要执行的操作。

Namespace:System.Reactive.Concurrency
装配: System.Reactive.dll) 中的 System.Reactive (

语法

'Declaration
Function Schedule(Of TState) ( _
    state As TState, _
    action As Func(Of IScheduler, TState, IDisposable) _
) As IDisposable
'Usage
Dim instance As IScheduler
Dim state As TState
Dim action As Func(Of IScheduler, TState, IDisposable)
Dim returnValue As IDisposable

returnValue = instance.Schedule(state, _
    action)
IDisposable Schedule<TState>(
    TState state,
    Func<IScheduler, TState, IDisposable> action
)
generic<typename TState>
IDisposable^ Schedule(
    TState state, 
    Func<IScheduler^, TState, IDisposable^>^ action
)
abstract Schedule : 
        state:'TState * 
        action:Func<IScheduler, 'TState, IDisposable> -> IDisposable 
JScript does not support generic types and methods.

类型参数

  • TState
    状态参数类型。

parameters

  • state
    类型:TState
    传递给要执行的操作的状态。

返回值

类型: System.IDisposable
用于取消计划操作的可释放对象 (尽最大努力) 。

另请参阅

参考

IScheduler 接口

计划重载

System.Reactive.Concurrency 命名空间