Freigeben über


TfsConfigurationServer-Konstruktor (Uri)

Initialisiert eine neue Instanz des TfsConfigurationServer-Objekts.

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

Syntax

'Declaration
Public Sub New ( _
    uri As Uri _
)
public TfsConfigurationServer(
    Uri uri
)

Parameter

  • uri
    Typ: System.Uri
    Der URI (Uniform Resource Identifier (URI) des Servers, der Team Foundation Server ausführt.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

Wenn uri NULL ist

Hinweise

// 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[0]); 

// Connect to the first one in the array
TfsConfigurationServer tfs = new TfsConfigurationServer(tfsUri);

.NET Framework-Sicherheit

Siehe auch

Referenz

TfsConfigurationServer Klasse

TfsConfigurationServer-Überladung

Microsoft.TeamFoundation.Client-Namespace

Weitere Ressourcen

Herstellen einer Verbindung mit Team Foundation Server von einer Konsolenanwendung aus