Expand Minimize
This topic has not yet been rated - Rate this topic

TfsTeamProjectCollection Constructor (Uri, TfsClientCredentials, IdentityDescriptor)

Visual Studio 2012

Initializes a new TfsTeamProjectCollection instance using the specified credentials. The specified identity will be impersonated for all operations.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
public:
TfsTeamProjectCollection(
	Uri^ uri, 
	TfsClientCredentials^ credentials, 
	IdentityDescriptor^ identityToImpersonate
)

Parameters

uri
Type: Uri

The URI of the project collection

credentials
Type: Microsoft.TeamFoundation.Client::TfsClientCredentials

The credentials which should be used for authentication

identityToImpersonate
Type: Microsoft.TeamFoundation.Framework.Client::IdentityDescriptor

The windows credentials which should be used for authentication

ExceptionCondition
ArgumentNullException

when uri or credentials is null

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.