Поделиться через


TfsConfigurationServer - конструктор (Uri)

Инициализирует новый экземпляр объекта TfsConfigurationServer.

Пространство имен:  Microsoft.TeamFoundation.Client
Сборка:  Microsoft.TeamFoundation.Client (в Microsoft.TeamFoundation.Client.dll)

Синтаксис

'Декларация
Public Sub New ( _
    uri As Uri _
)
public TfsConfigurationServer(
    Uri uri
)

Параметры

  • uri
    Тип: System.Uri
    Универсальный код ресурса (URI) сервера, на котором выполняется Team Foundation Server.

Исключения

Исключение Условие
ArgumentNullException

при uri null

Заметки

// 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

См. также

Ссылки

TfsConfigurationServer Класс

TfsConfigurationServer - перегрузка

Microsoft.TeamFoundation.Client - пространство имен

Другие ресурсы

Подключение к серверу Team Foundation Server из консольного приложения