TeamFoundationJobReference Class

A reference to a job used for queuing.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobReference

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

Syntax

'Declaration
Public NotInheritable Class TeamFoundationJobReference
public sealed class TeamFoundationJobReference
public ref class TeamFoundationJobReference sealed
[<Sealed>]
type TeamFoundationJobReference =  class end
public final class TeamFoundationJobReference

The TeamFoundationJobReference type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationJobReference()
Public method TeamFoundationJobReference(Guid)
Public method TeamFoundationJobReference(Guid, JobPriorityClass)

Top

Properties

  Name Description
Public property JobId
Public property PriorityClass

Top

Methods

  Name Description
Public methodStatic member ConvertJobIdsToJobReferences
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Specifying JobPriorityClass can be used to prevent a database call to determine the JobPriorityClass from the persisted JobDefinition. This allows for greater performance for jobs frequently queued. If you don't need this performance optimization, you may want to call into the overloads that take simply a JobId (Guid).

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