ITeamFoundationJobService.QueueDelayedJobs Method (IEnumerable<TeamFoundationJobDefinition>, Int32)

Schedules the specified enumerable collection of jobs to be executed in the near future.

Namespace:  Microsoft.TeamFoundation.Framework.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)


Function QueueDelayedJobs ( _
    jobs As IEnumerable(Of TeamFoundationJobDefinition), _
    maxDelaySeconds As Integer _
) As Integer
int QueueDelayedJobs(
    IEnumerable<TeamFoundationJobDefinition> jobs,
    int maxDelaySeconds
int QueueDelayedJobs(
    IEnumerable<TeamFoundationJobDefinition^>^ jobs, 
    int maxDelaySeconds
abstract QueueDelayedJobs : 
        jobs:IEnumerable<TeamFoundationJobDefinition> * 
        maxDelaySeconds:int -> int 
function QueueDelayedJobs(
    jobs : IEnumerable<TeamFoundationJobDefinition>, 
    maxDelaySeconds : int
) : int


  • maxDelaySeconds
    Type: System.Int32
    The number of seconds to delay the start of the job.

Return Value

Type: System.Int32
The number of jobs that were successfully scheduled for execution.


QueueDelayedJobs 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

See Also


ITeamFoundationJobService Interface

QueueDelayedJobs Overload

Microsoft.TeamFoundation.Framework.Client Namespace