ITeamFoundationJobService.QueueDelayedJob Method (TeamFoundationJobDefinition)
Schedules the specified job to be executed in the near future.
Namespace: Microsoft.TeamFoundation.Framework.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaração
Function QueueDelayedJob ( _
job As TeamFoundationJobDefinition _
) As Integer
int QueueDelayedJob(
TeamFoundationJobDefinition job
)
int QueueDelayedJob(
TeamFoundationJobDefinition^ job
)
abstract QueueDelayedJob :
job:TeamFoundationJobDefinition -> int
function QueueDelayedJob(
job : TeamFoundationJobDefinition
) : int
Parameters
- job
Type: Microsoft.TeamFoundation.Framework.Client.TeamFoundationJobDefinition
The job definition to schedule for execution.
Return Value
Type: System.Int32
Returns 1 if the job was successfully queued; otherwise, returns 0.
Remarks
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.