TfsTeamProjectCollectionFactory.GetTeamProjectCollection 方法 (Uri, ICredentialsProvider)

注意:這個應用程式開發介面現在已經過時。

取得與指定的 URI 和後援認證提供者的伺服器的 TfsTeamProjectCollection 執行個體。

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
<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
)

參數

  • uri
    類型:System.Uri
    執行 Team Foundation Server之伺服器的 URI。

傳回值

類型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
與指定之 URI 的伺服器與指定之認證提供者的 TfsTeamProjectCollection 執行個體。

備註

如果具有指定之 URI 的 TfsTeamProjectCollection 物件在快取中,則會傳回。 使用認證提供者,,如果有的話,否則,新的 TfsTeamProjectCollection 執行個體建立為環境的。 建立的 TfsTeamProjectCollection 物件在用於名稱解析的快取中放置並與 URI。

.NET Framework 安全性

請參閱

參考

TfsTeamProjectCollectionFactory 類別

GetTeamProjectCollection 多載

Microsoft.TeamFoundation.Client 命名空間