Interface for a build service host in the server that is running Team Foundation Build.
Namespace:  Microsoft.TeamFoundation.Build.Client
Assembly:  Microsoft.TeamFoundation.Build.Client (in Microsoft.TeamFoundation.Build.Client.dll)
Syntax
'Declaration
Public Interface IBuildServiceHost
public interface IBuildServiceHost
public interface class IBuildServiceHost
type IBuildServiceHost =  interface end
public interface IBuildServiceHost
The IBuildServiceHost type exposes the following members.
Properties
| Name | Description | |
|---|---|---|
| .gif) | AcquiredOn | Gets the date and time of registration with TFS if this service host is online, else returns DateTime.MinValue. | 
| .gif) | Agents | Gets a read-only collection of agents that is associated with this service host. | 
| .gif) | BaseUrl | Gets or sets the base URL for this service host. | 
| .gif) | BuildServer | Gets the build server for this service host. | 
| .gif) | ConnectedOn | Gets the date and time of connection to the message queue if this service host is online, else returns DateTime.MinValue. | 
| .gif) | Controller | Gets the build controller that is associated with this service host. | 
| .gif) | IsVirtual | Gets a value indicating whether this service host is virtual. A virtual service host is dynamically allocated to computers on demand instead of statically at installation time. | 
| .gif) | MessageQueueUrl | Gets the message queue address. This field is for system use only. | 
| .gif) | Name | Gets or sets the name for this service host. | 
| .gif) | RequireClientCertificates | Gets or sets a flag that describes whether the service host requires client certificates for incoming calls. | 
| .gif) | Status | Gets the online status of the service host. | 
| .gif) | StatusChangedOn | Gets the date and time of the last online/offline status change of the service host. | 
| .gif) | Uri | Gets the uniform resource identifier (URI) for this service host. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | AddBuildAgent | Adds a build agent to the collection of agents that are associated with this service host. | 
| .gif) | CreateBuildAgent(String, String) | Creates a build agent that is associated with the current service host and adds it to the collection of agents. | 
| .gif) | CreateBuildAgent(String, String, IBuildController) | Creates a build agent that is associated with the current service host and adds it to the collection of agents. | 
| .gif) | CreateBuildController | Creates a build controller that is associated with the current service host. | 
| .gif) | Delete | Deletes the service host together with all associated controllers and agents. | 
| .gif) | DeleteBuildAgent | Deletes the specified build agent from this service host. | 
| .gif) | DeleteBuildController | Deletes the build controller that is associated with this service host. | 
| .gif) | FindBuildAgent | Gets the build agent that has the specified name and that is associated with the specified build controller. | 
| .gif) | ReleaseOwnership | Releases ownership of the service host. | 
| .gif) | Save | Saves any changes that were made since the last time that the save method was called. | 
| .gif) | SetBuildAgentStatus | Sets the build agent status. | 
| .gif) | SetBuildController | Switches the build controller that is associated with this service host. | 
| .gif) | SetBuildControllerStatus | Sets the build controller status. | 
| .gif) | TakeOwnership | Takes ownership of the service host. | 
Top