TfsTeamProjectCollectionFactory.GetTeamProjectCollection Method (Uri)
Gets the TfsTeamProjectCollection instance that is associated with the server at the specified URI.
Namespace: Microsoft.TeamFoundation.Client
Assembly: Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)
Syntax
'Declaração
Public Shared Function GetTeamProjectCollection ( _
uri As Uri _
) As TfsTeamProjectCollection
public static TfsTeamProjectCollection GetTeamProjectCollection(
Uri uri
)
public:
static TfsTeamProjectCollection^ GetTeamProjectCollection(
Uri^ uri
)
static member GetTeamProjectCollection :
uri:Uri -> TfsTeamProjectCollection
public static function GetTeamProjectCollection(
uri : Uri
) : TfsTeamProjectCollection
Parameters
- uri
Type: System.Uri
The URI of the server that is running Team Foundation Server.
Return Value
Type: Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
The TfsTeamProjectCollection instance that is associated with the server at the specified URI.
Remarks
If a TfsTeamProjectCollection object that has the specified URI exists in the cache, it is returned. If not, a new TfsTeamProjectCollection instance is created by using a credentials provider, if any, that is appropriate for the environment. The created TfsTeamProjectCollection object is placed in the cache and associated with the URI that is resolved for the name.
.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
TfsTeamProjectCollectionFactory Class