Share via


TfsTeamProjectCollectionFactory 類別

TfsTeamProjectCollection 物件的 Class Factory。

繼承階層架構

System.Object
  Microsoft.TeamFoundation.Client.TfsTeamProjectCollectionFactory

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

語法

'宣告
Public NotInheritable Class TfsTeamProjectCollectionFactory
public static class TfsTeamProjectCollectionFactory

TfsTeamProjectCollectionFactory 型別會公開下列成員。

方法

  名稱 說明
公用方法靜態成員 GetTeamProjectCollection(Uri) 取得與指定之 URI 的伺服器 TfsTeamProjectCollection 的執行個體。
公用方法靜態成員 GetTeamProjectCollection(RegisteredProjectCollection) 取得與指定之執行個體的 RegisteredProjectCollection TfsTeamProjectCollection 執行個體。
公用方法靜態成員 GetTeamProjectCollection(String, Uri)
公用方法靜態成員 GetTeamProjectCollection(Uri, ICredentialsProvider) 已過時。取得與指定的 URI 和後援認證提供者的伺服器 TfsTeamProjectCollection 的執行個體。
公用方法靜態成員 GetTeamProjectCollection(RegisteredProjectCollection, ICredentialsProvider) 已過時。取得與指定的執行個體 RegisteredProjectCollection 和後援認證提供者的 TfsTeamProjectCollection 執行個體。
公用方法靜態成員 GetTeamProjectCollection(String, Boolean, Boolean) 擷取之前為特定伺服器所使用的 TfsTeamProjectCollection 物件。
公用方法靜態成員 ReplaceTeamProjectCollection

回頁首

備註

這個類別的設計是要讓外部套件使用 TfsTeamProjectCollection 相同的物件執行個體。 它會快取 TfsTeamProjectCollection 物件不考慮認證。 伺服器統一資源識別元 (URI) 只索引快取圖群組集合 (URI) 的物件。

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.Client 命名空間