TfsTeamProjectCollectionFactory.GetTeamProjectCollection 方法 (RegisteredProjectCollection)
取得與指定的 RegisteredProjectCollection 執行個體的 TfsTeamProjectCollection 執行個體。
命名空間: Microsoft.TeamFoundation.Client
組件: Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)
語法
'宣告
Public Shared Function GetTeamProjectCollection ( _
projectCollection As RegisteredProjectCollection _
) As TfsTeamProjectCollection
public static TfsTeamProjectCollection GetTeamProjectCollection(
RegisteredProjectCollection projectCollection
)
參數
- projectCollection
類型:Microsoft.TeamFoundation.Client.RegisteredProjectCollection
這個 RegisteredProjectCollection 包含伺服器的相關資訊。
傳回值
類型:Microsoft.TeamFoundation.Client.TfsTeamProjectCollection
與伺服器在指定的 RegisteredProjectCollection 中描述的 TfsTeamProjectCollection 執行個體。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱 從部分受信任程式碼使用程式庫。