다음을 통해 공유


TfsTeamProjectCollection 생성자 (Uri, TfsClientCredentials, IdentityDescriptor)

새를 초기화 TfsTeamProjectCollection 지정 된 자격 증명을 사용 하 여 인스턴스. 모든 작업에 대 한 지정된 된 id는 가장할 수 됩니다.

네임스페이스:  Microsoft.TeamFoundation.Client
어셈블리:  Microsoft.TeamFoundation.Client(Microsoft.TeamFoundation.Client.dll)

구문

‘선언
Public Sub New ( _
    uri As Uri, _
    credentials As TfsClientCredentials, _
    identityToImpersonate As IdentityDescriptor _
)
public TfsTeamProjectCollection(
    Uri uri,
    TfsClientCredentials credentials,
    IdentityDescriptor identityToImpersonate
)

매개 변수

  • uri
    형식: System.Uri
    프로젝트 컬렉션의 URI

예외

예외 조건
ArgumentNullException

when uri or credentials is null

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

TfsTeamProjectCollection 클래스

TfsTeamProjectCollection 오버로드

Microsoft.TeamFoundation.Client 네임스페이스