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 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.
참고 항목
참조
Microsoft.TeamFoundation.Client 네임스페이스