Delen via


TeamFoundationJobService.QueryJobDefinition Method

Retrieve a single job definition for the specified jobId

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

Syntax

'Declaration
Public Function QueryJobDefinition ( _
    requestContext As TeamFoundationRequestContext, _
    jobId As Guid _
) As TeamFoundationJobDefinition
public TeamFoundationJobDefinition QueryJobDefinition(
    TeamFoundationRequestContext requestContext,
    Guid jobId
)
public:
TeamFoundationJobDefinition^ QueryJobDefinition(
    TeamFoundationRequestContext^ requestContext, 
    Guid jobId
)
member QueryJobDefinition : 
        requestContext:TeamFoundationRequestContext * 
        jobId:Guid -> TeamFoundationJobDefinition
public function QueryJobDefinition(
    requestContext : TeamFoundationRequestContext, 
    jobId : Guid
) : TeamFoundationJobDefinition

Parameters

  • jobId
    Type: System.Guid

    JobId for the job definition to retrieve

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobDefinition
Returns the job definition if it exists. Otherwise returns null.

.NET Framework Security

See Also

Reference

TeamFoundationJobService Class

Microsoft.TeamFoundation.Framework.Server Namespace