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
)
參數
- projectCollection
類型:Microsoft.TeamFoundation.Client.RegisteredProjectCollection
這個 RegisteredProjectCollection 包含伺服器的相關資訊。
- fallbackCredentialsProvider
類型:Microsoft.TeamFoundation.Client.ICredentialsProvider
傳回值
類型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
與伺服器在指定的 RegisteredProjectCollection 中描述的 TfsTeamProjectCollection 執行個體。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。