DispatcherScheduler.Schedule<TState> メソッド (TState、Func<IScheduler、TState、IDisposable>)

ディスパッチャーで実行されるアクションをスケジュールします。

Namespace:System.Reactive.Concurrency
アセンブリ: System.Reactive.Windows.Threading (System.Reactive.Windows.Threading.dll)

構文

'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 引数の型。

パラメーター

  • state
    型: TState
    実行するアクションに渡される状態。

戻り値

種類: System.IDisposable
スケジュールされたアクションを取り消すために使用される破棄可能なオブジェクト (ベスト エフォート)。

実装

IScheduler.Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>)

参照

リファレンス

DispatcherScheduler クラス

スケジュール オーバーロード

System.Reactive.Concurrency 名前空間