TfsConfigurationServer Constructor (Uri)
Initializes a new instance of the TfsConfigurationServer object.
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
// Connect to Team Foundation Server // server is the name of the server that is running the Team Foundation application-tier. // port is the port that Team Foundation uses. The default port is 8080. // vdir is the virtual path to the Team Foundation application. The default path is tfs. Uri tfsUri = (args.Length < 1) ? new Uri("http://server:port/vdir") : new Uri(args); // Connect to the first one in the array TfsConfigurationServer tfs = new TfsConfigurationServer(tfsUri);
- 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.