Delen via


ITeamFoundationJobExtension.Run Method

Perform one occurrence of a job. This method should not return until job execution is stopped or completed.

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

Syntax

'Declaration
Function Run ( _
    requestContext As TeamFoundationRequestContext, _
    jobDefinition As TeamFoundationJobDefinition, _
    queueTime As DateTime, _
    <OutAttribute> ByRef resultMessage As String _
) As TeamFoundationJobExecutionResult
TeamFoundationJobExecutionResult Run(
    TeamFoundationRequestContext requestContext,
    TeamFoundationJobDefinition jobDefinition,
    DateTime queueTime,
    out string resultMessage
)
TeamFoundationJobExecutionResult Run(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationJobDefinition^ jobDefinition, 
    DateTime queueTime, 
    [OutAttribute] String^% resultMessage
)
abstract Run : 
        requestContext:TeamFoundationRequestContext * 
        jobDefinition:TeamFoundationJobDefinition * 
        queueTime:DateTime * 
        resultMessage:string byref -> TeamFoundationJobExecutionResult
function Run(
    requestContext : TeamFoundationRequestContext, 
    jobDefinition : TeamFoundationJobDefinition, 
    queueTime : DateTime, 
    resultMessage : String
) : TeamFoundationJobExecutionResult

Parameters

  • queueTime
    Type: System.DateTime

    The time at which this execution was queued.

  • resultMessage
    Type: System.String%

    A message for the job result log.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobExecutionResult
The job's execution result.

.NET Framework Security

See Also

Reference

ITeamFoundationJobExtension Interface

Microsoft.TeamFoundation.Framework.Server Namespace