Share via


ITeamFoundationJobService.QueueJobNow Method (TeamFoundationJobDefinition, Boolean)

Puts the specified job in the queue and starts it immediately.

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

Syntax

'Declaration
Function QueueJobNow ( _
    job As TeamFoundationJobDefinition, _
    highPriority As Boolean _
) As Integer
int QueueJobNow(
    TeamFoundationJobDefinition job,
    bool highPriority
)
int QueueJobNow(
    TeamFoundationJobDefinition^ job, 
    bool highPriority
)
abstract QueueJobNow : 
        job:TeamFoundationJobDefinition * 
        highPriority:bool -> int
function QueueJobNow(
    job : TeamFoundationJobDefinition, 
    highPriority : boolean
) : int

Parameters

  • highPriority
    Type: System.Boolean

    True to flag the job as high priority; false to flag the job as regular priority.

Return Value

Type: System.Int32
Returns 1 if the job was successfully put in the queue; otherwise, 0.

.NET Framework Security

See Also

Reference

ITeamFoundationJobService Interface

QueueJobNow Overload

Microsoft.TeamFoundation.Framework.Client Namespace