TfsTeamProjectCollectionFactory.GetTeamProjectCollection Method (Uri, ICredentialsProvider)

Note: This API is now obsolete.

Gets the TfsTeamProjectCollection instance that is associated with the server at the specified URI and a fallback credentials provider.

Namespace:  Microsoft.TeamFoundation.Client
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

Syntax

'Declaration
<ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetTeamProjectCollection(Uri) instead.",  _
    False)> _
Public Shared Function GetTeamProjectCollection ( _
    uri As Uri, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TfsTeamProjectCollection
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetTeamProjectCollection(Uri) instead.", 
    false)]
public static TfsTeamProjectCollection GetTeamProjectCollection(
    Uri uri,
    ICredentialsProvider fallbackCredentialsProvider
)
[ObsoleteAttribute(L"This method has been deprecated and will be removed in a future release. See GetTeamProjectCollection(Uri) instead.", 
    false)]
public:
static TfsTeamProjectCollection^ GetTeamProjectCollection(
    Uri^ uri, 
    ICredentialsProvider^ fallbackCredentialsProvider
)
[<ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetTeamProjectCollection(Uri) instead.", 
    false)>]
static member GetTeamProjectCollection : 
        uri:Uri * 
        fallbackCredentialsProvider:ICredentialsProvider -> TfsTeamProjectCollection
public static function GetTeamProjectCollection(
    uri : Uri, 
    fallbackCredentialsProvider : ICredentialsProvider
) : 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 with the specified credentials provider.

Remarks

If a TfsTeamProjectCollection object that has the specified URI is 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 put in the cache and associated with the URI that is resolved for the name.

.NET Framework Security

See Also

Reference

TfsTeamProjectCollectionFactory Class

GetTeamProjectCollection Overload

Microsoft.TeamFoundation.Client Namespace