각 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
상태 인수 형식입니다.
매개 변수
- scheduler
형식: System.Reactive.Concurrency.IScheduler
재귀 작업을 실행할 스케줄러입니다.
- state
형식: TState
실행할 작업에 전달된 상태입니다.
- dueTime
형식: System.DateTimeOffset
처음으로 작업을 실행할 절대 시간입니다.
- action
형식: System.Action<TState, Action<TState, DateTimeOffset>>
재귀적으로 실행할 작업입니다.
반환 값
형식: System.IDisposable
예약된 작업을 취소하는 데 사용되는 삭제 가능한 개체입니다(최상의 작업).
사용 정보
Visual Basic 및 C#에서는 IScheduler 형식의 모든 개체에서 이 메서드를 instance 메서드로 호출할 수 있습니다. 인스턴스 메서드 구문을 사용하여 이 메서드를 호출할 경우에는 첫 번째 매개 변수를 생략합니다. 자세한 내용은 또는 를 참조하세요.