AgentSettings Class

Represents the settings of a build agent.


Namespace:  Microsoft.TeamFoundation.Build.Workflow.Activities
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)

public class AgentSettings

The AgentSettings type exposes the following members.

Public methodAgentSettings()Initializes a new instance of the AgentSettings class.
Public methodAgentSettings(TimeSpan, TimeSpan)Initializes a new instance of the AgentSettings class.

Public propertyHasTagsGets a flag describing whether this agent has tags set in Tags.
Public propertyIsMaxExecutionTimeSetGets a flag describing whether MaxExecutionTime is set.
Public propertyIsMaxWaitTimeSetGets a flag describing whether MaxWaitTime is set.
Public propertyMaxExecutionTimeGets a TimeSpan object describing the maximum amount of time to allow the build agent to complete its activities.
Public propertyMaxWaitTimeGets a TimeSpan object describing the maximum amount of time to wait for a build agent to become available.
Public propertyNameGets or sets the name of this build agent.
Public propertyTagComparisonGets or sets the TagComparison value that describes how tags should be compared for a match.
Public propertyTagsGets or sets a StringList containing the tags associated with this agent.

Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetAgentReservationSpecCreates an AgentReservationSpec object based on this agent’s Name and Tags properties.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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

Community Additions