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