Export (0) Print
Expand All
Expand Minimize

TfsConfigurationServer Constructor (RegisteredConfigurationServer)

Initializes a new instance of the TfsConfigurationServer object by using the registration information on the local computer.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

public TfsConfigurationServer(
	RegisteredConfigurationServer application


Type: Microsoft.TeamFoundation.Client.RegisteredConfigurationServer

The registered server that is running Team Foundation Server.

You can get the registered configuration servers by using RegisteredTfsConnections.GetConfigurationServers.

// Get the servers registered on this computer
RegisteredConfigurationServer[] servers = RegisteredTfsConnections.GetConfigurationServers();

// Connect to the first one in the array
TfsConfigurationServer tfs = new TfsConfigurationServer(servers[0]);

© 2014 Microsoft