다음을 통해 공유


Scheduler.Schedule<TState> 메서드(IScheduler, TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>)

각 dueTime에서 재귀적으로 실행되도록 작업을 예약합니다.

네임스페이스:System.Reactive.Concurrency
어셈블리: System.Reactive(System.Reactive.dll)

Syntax

'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
    형식: TState
    실행할 작업에 전달된 상태입니다.

반환 값

형식: System.IDisposable
예약된 작업을 취소하는 데 사용되는 삭제 가능한 개체입니다(최상의 작업).

사용 정보

Visual Basic 및 C#에서는 IScheduler 형식의 모든 개체에서 이 메서드를 instance 메서드로 호출할 수 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 또는 를 참조하세요.

참고 항목

참조

Scheduler 클래스

예약 오버로드

System.Reactive.Concurrency 네임스페이스