TfsTeamProjectCollection Constructor (Uri, IdentityDescriptor)
Initializes a new instance of the TfsTeamProjectCollection class.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaration
Public Sub New ( _
uri As Uri, _
identityToImpersonate As IdentityDescriptor _
)
public TfsTeamProjectCollection(
Uri uri,
IdentityDescriptor identityToImpersonate
)
public:
TfsTeamProjectCollection(
Uri^ uri,
IdentityDescriptor^ identityToImpersonate
)
new :
uri:Uri *
identityToImpersonate:IdentityDescriptor -> TfsTeamProjectCollection
public function TfsTeamProjectCollection(
uri : Uri,
identityToImpersonate : IdentityDescriptor
)
Parameters
uri
Type: System.UriThe URI of the project collection.
identityToImpersonate
Type: Microsoft.TeamFoundation.Framework.Client.IdentityDescriptorThe identity to impersonate.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | when uri 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