计划要对调度程序执行的操作。
              Namespace:System.Reactive.Concurrency
              装配: System.Reactive.Windows.Threading.dll) 中的 System.Reactive.Windows.Threading (
语法
'Declaration
Public Function Schedule(Of TState) ( _
    state As TState, _
    action As Func(Of IScheduler, TState, IDisposable) _
) As IDisposable
'Usage
Dim instance As DispatcherScheduler
Dim state As TState
Dim action As Func(Of IScheduler, TState, IDisposable)
Dim returnValue As IDisposable
returnValue = instance.Schedule(state, _
    action)
public IDisposable Schedule<TState>(
    TState state,
    Func<IScheduler, TState, IDisposable> action
)
public:
generic<typename TState>
virtual IDisposable^ Schedule(
    TState state, 
    Func<IScheduler^, TState, IDisposable^>^ action
) sealed
abstract Schedule : 
        state:'TState * 
        action:Func<IScheduler, 'TState, IDisposable> -> IDisposable 
override Schedule : 
        state:'TState * 
        action:Func<IScheduler, 'TState, IDisposable> -> IDisposable 
JScript does not support generic types and methods.
类型参数
- TState
状态参数类型。 
参数
- state
类型:TState
传递给要执行的操作的状态。 
- action
类型: System.Func<IScheduler、TState、 IDisposable>
要执行的操作。 
返回值
类型: System.IDisposable
用于取消计划操作的可释放对象 (尽最大努力) 。
实现
IScheduler.Schedule<TState> (TState、Func<IScheduler、TState、IDisposable>)