ITeamFoundationJobService.QueueDelayedJob Method (TeamFoundationJobDefinition, Int32)
Schedules a job to be executed in the near future.
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
'宣言 Function QueueDelayedJob ( _ job As TeamFoundationJobDefinition, _ maxDelaySeconds As Integer _ ) As Integer
int QueueDelayedJob( TeamFoundationJobDefinition job, int maxDelaySeconds )
int QueueDelayedJob( TeamFoundationJobDefinition^ job, int maxDelaySeconds )
abstract QueueDelayedJob : job:TeamFoundationJobDefinition * maxDelaySeconds:int -> int
function QueueDelayedJob( job : TeamFoundationJobDefinition, maxDelaySeconds : int ) : int
The job definition to schedule for execution.
The number of seconds to delay the start of the job.
Returns 1 if the job was successfully queued; otherwise, returns 0.
QueueDelayedJob will only cause a job to run sooner or will have no effect. It will never postpone a job that is already scheduled to be executed in the near future.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.