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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextA request context associated with the job source.
jobDefinition
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobDefinitionThe definition of the job being executed.
queueTime
Type: System.DateTimeThe 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
- 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.