Scheduler.Schedule<TState> メソッド (IScheduler、TState、TimeSpan、Action<TState、Action<TState、TimeSpan>>)
各 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 TimeSpan, _
action As Action(Of TState, Action(Of TState, TimeSpan)) _
) As IDisposable
'Usage
Dim scheduler As IScheduler
Dim state As TState
Dim dueTime As TimeSpan
Dim action As Action(Of TState, Action(Of TState, TimeSpan))
Dim returnValue As IDisposable
returnValue = scheduler.Schedule(state, _
dueTime, action)
public static IDisposable Schedule<TState>(
this IScheduler scheduler,
TState state,
TimeSpan dueTime,
Action<TState, Action<TState, TimeSpan>> action
)
[ExtensionAttribute]
public:
generic<typename TState>
static IDisposable^ Schedule(
IScheduler^ scheduler,
TState state,
TimeSpan dueTime,
Action<TState, Action<TState, TimeSpan>^>^ action
)
static member Schedule :
scheduler:IScheduler *
state:'TState *
dueTime:TimeSpan *
action:Action<'TState, Action<'TState, TimeSpan>> -> IDisposable
JScript does not support generic types and methods.
型パラメーター
- TState
state 引数の型。
パラメーター
- scheduler
型: System.Reactive.Concurrency.IScheduler
再帰アクションを実行するスケジューラ。
- state
型: TState
実行するアクションに渡される状態。
- Duetime
種類: System.TimeSpan
アクションを初めて実行する相対時間。
- action
種類: System.Action<TState、 Action<TState、 TimeSpan>>
再帰的に実行するアクション。
戻り値
種類: System.IDisposable
スケジュールされたアクションを取り消すために使用される破棄可能なオブジェクト (ベスト エフォート)。
使用上の注意
Visual Basic と C# では、このメソッドを IScheduler 型の任意のオブジェクトのインスタンス メソッドとして呼び出すことができます。 インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。 詳細については、」または」を参照してください。