TfsTeamProjectCollection Constructor (Uri, TfsClientCredentials, IdentityDescriptor)
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)
Syntax
'Declaration
Public Sub New ( _
uri As Uri, _
credentials As TfsClientCredentials, _
identityToImpersonate As IdentityDescriptor _
)
public TfsTeamProjectCollection(
Uri uri,
TfsClientCredentials credentials,
IdentityDescriptor identityToImpersonate
)
public:
TfsTeamProjectCollection(
Uri^ uri,
TfsClientCredentials^ credentials,
IdentityDescriptor^ identityToImpersonate
)
new :
uri:Uri *
credentials:TfsClientCredentials *
identityToImpersonate:IdentityDescriptor -> TfsTeamProjectCollection
public function TfsTeamProjectCollection(
uri : Uri,
credentials : TfsClientCredentials,
identityToImpersonate : IdentityDescriptor
)
Parameters
uri
Type: System.UriThe URI of the project collection
credentials
Type: Microsoft.TeamFoundation.Client.TfsClientCredentialsThe credentials which should be used for authentication
identityToImpersonate
Type: Microsoft.TeamFoundation.Framework.Client.IdentityDescriptorThe windows credentials which should be used for authentication
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | when uri or credentials is null |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TfsTeamProjectCollection Class