This documentation is archived and is not being maintained.
TfsConfigurationServer Constructor (RegisteredConfigurationServer)
Visual Studio 2013
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)
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]);
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: