TeamFoundationTask Class

A task that can be added to the Task Service to run one time or on an interval basis on a pool of worker threads. When the task runs, the provided callback method is invoked.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.Task.TeamFoundationTask<Guid>
    Microsoft.TeamFoundation.Framework.Server.TeamFoundationTask

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

Syntax

'Declaration
Public Class TeamFoundationTask _
    Inherits TeamFoundationTask(Of Guid)
public class TeamFoundationTask : TeamFoundationTask<Guid>
public ref class TeamFoundationTask : public TeamFoundationTask<Guid>
type TeamFoundationTask =  
    class 
        inherit TeamFoundationTask<Guid>
    end
public class TeamFoundationTask extends TeamFoundationTask<Guid>

The TeamFoundationTask type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationTask(TeamFoundationTaskCallback) Creates a TeamFoundationTask for the given callback method
Public method TeamFoundationTask(TeamFoundationTaskCallback, Object, Int32) Creates a TeamFoundationTask with the specified arguments
Public method TeamFoundationTask(TeamFoundationTaskCallback, Object, DateTime, Int32) Creates a TeamFoundationTask with the specified arguments

Top

Properties

  Name Description
Public property Callback (Inherited from TeamFoundationTask<T>.)
Public property Identifier (Inherited from TeamFoundationTask<T>.)
Public property Interval (Inherited from TeamFoundationTask<T>.)
Public property IsHighPriority (Inherited from TeamFoundationTask<T>.)
Public property NeedsTargetRequestContext (Overrides TeamFoundationTask<T>.NeedsTargetRequestContext.)
Public property ServicingContext (Inherited from TeamFoundationTask<T>.)
Public property StartTime (Inherited from TeamFoundationTask<T>.)
Public property TaskArgs (Inherited from TeamFoundationTask<T>.)

Top

Methods

  Name Description
Public method Equals (Inherited from TeamFoundationTask<T>.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode (Inherited from TeamFoundationTask<T>.)
Public method GetRequestContext (Overrides TeamFoundationTask<T>.GetRequestContext(TeamFoundationRequestContext, T).)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString (Inherited from TeamFoundationTask<T>.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace