Share via


TeamFoundationTask<T> Constructor

Creates a TeamFoundationTask with the specified arguments

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

Syntax

'Declaration
Public Sub New ( _
    callback As TeamFoundationTaskCallback, _
    taskArgs As Object, _
    startTime As DateTime, _
    interval As Integer _
)
public TeamFoundationTask(
    TeamFoundationTaskCallback callback,
    Object taskArgs,
    DateTime startTime,
    int interval
)
public:
TeamFoundationTask(
    TeamFoundationTaskCallback^ callback, 
    Object^ taskArgs, 
    DateTime startTime, 
    int interval
)
new : 
        callback:TeamFoundationTaskCallback * 
        taskArgs:Object * 
        startTime:DateTime * 
        interval:int -> TeamFoundationTask
public function TeamFoundationTask(
    callback : TeamFoundationTaskCallback, 
    taskArgs : Object, 
    startTime : DateTime, 
    interval : int
)

Parameters

  • taskArgs
    Type: System.Object

    The arguments to pass to the task callback when it is invoked

  • startTime
    Type: System.DateTime

    The first time the task should run. If the time specified is earlier than DateTime.UtcNow, the job will be run immediately

  • interval
    Type: System.Int32

    The interval for the task in milliseconds. If this is 0, the task runs once.

.NET Framework Security

See Also

Reference

TeamFoundationTask<T> Class

Microsoft.TeamFoundation.Framework.Server.Task Namespace