Scheduler.Schedule<TState> メソッド (IScheduler、TState、DateTimeOffset、Action<TState、Action<TState、DateTimeOffset>>)

各 dueTime で再帰的に実行されるアクションをスケジュールします。

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

構文

'Declaration
<ExtensionAttribute> _
Public Shared Function Schedule(Of TState) ( _
    scheduler As IScheduler, _
    state As TState, _
    dueTime As DateTimeOffset, _
    action As Action(Of TState, Action(Of TState, DateTimeOffset)) _
) As IDisposable
'Usage
Dim scheduler As IScheduler
Dim state As TState
Dim dueTime As DateTimeOffset
Dim action As Action(Of TState, Action(Of TState, DateTimeOffset))
Dim returnValue As IDisposable

returnValue = scheduler.Schedule(state, _
    dueTime, action)
public static IDisposable Schedule<TState>(
    this IScheduler scheduler,
    TState state,
    DateTimeOffset dueTime,
    Action<TState, Action<TState, DateTimeOffset>> action
)
[ExtensionAttribute]
public:
generic<typename TState>
static IDisposable^ Schedule(
    IScheduler^ scheduler, 
    TState state, 
    DateTimeOffset dueTime, 
    Action<TState, Action<TState, DateTimeOffset>^>^ action
)
static member Schedule : 
        scheduler:IScheduler * 
        state:'TState * 
        dueTime:DateTimeOffset * 
        action:Action<'TState, Action<'TState, DateTimeOffset>> -> IDisposable 
JScript does not support generic types and methods.

型パラメーター

  • TState
    state 引数の型。

パラメーター

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

戻り値

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

使用上の注意

Visual Basic および C# では、 IScheduler 型の任意のオブジェクトでインスタンス メソッドとしてこのメソッドを呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。

参照

リファレンス

Scheduler クラス

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

System.Reactive.Concurrency 名前空間