TfsTeamProjectCollectionFactory.GetTeamProjectCollection 方法 (RegisteredProjectCollection, ICredentialsProvider)

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

取得與指定的 RegisteredProjectCollection 執行個體和後援認證提供者的 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(RegisteredProjectCollection) instead.",  _
    False)> _
Public Shared Function GetTeamProjectCollection ( _
    projectCollection As RegisteredProjectCollection, _
    fallbackCredentialsProvider As ICredentialsProvider _
) As TfsTeamProjectCollection
[ObsoleteAttribute("This method has been deprecated and will be removed in a future release. See GetTeamProjectCollection(RegisteredProjectCollection) instead.", 
    false)]
public static TfsTeamProjectCollection GetTeamProjectCollection(
    RegisteredProjectCollection projectCollection,
    ICredentialsProvider fallbackCredentialsProvider
)

參數

傳回值

類型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
與伺服器在指定的 RegisteredProjectCollection 中描述的 TfsTeamProjectCollection 執行個體。

.NET Framework 安全性

請參閱

參考

TfsTeamProjectCollectionFactory 類別

GetTeamProjectCollection 多載

Microsoft.TeamFoundation.Client 命名空間