TeamFoundationServerFactory 類別

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

TeamFoundationServer 物件的 Class Factory。 這個類別已經過時。 使用 TfsTeamProjectCollectionFactory。

繼承階層架構

System.Object
  Microsoft.TeamFoundation.Client.TeamFoundationServerFactory

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

語法

'宣告
<ObsoleteAttribute("The TeamFoundationServerFactory class is obsolete. Use the TfsTeamProjectCollection or TfsConfigurationServer classes to talk to a 2010 or newer Team Foundation Server. In order to talk to a 2005 or 2008 Team Foundation Server use the TfsTeamProjectCollection class. The corresponding factory class for that is the TfsTeamProjectCollectionFactory.")> _
Public NotInheritable Class TeamFoundationServerFactory
[ObsoleteAttribute("The TeamFoundationServerFactory class is obsolete. Use the TfsTeamProjectCollection or TfsConfigurationServer classes to talk to a 2010 or newer Team Foundation Server. In order to talk to a 2005 or 2008 Team Foundation Server use the TfsTeamProjectCollection class. The corresponding factory class for that is the TfsTeamProjectCollectionFactory.")]
public static class TeamFoundationServerFactory

方法

  名稱 描述
公用方法靜態成員 GetServer(String) 取得與指定之 URL 的 TeamFoundationServer 物件。
公用方法靜態成員 GetServer(Uri) 取得與指定之 URI 的 TeamFoundationServer 物件。
公用方法靜態成員 GetServer(RegisteredProjectCollection) 取得與指定之物件的 RegisteredProjectCollection TeamFoundationServer 物件。
公用方法靜態成員 GetServer(String, ICredentialsProvider) 取得與指定的 URL 和認證提供者的 TeamFoundationServer 物件。
公用方法靜態成員 GetServer(Uri, ICredentialsProvider) 取得與指定的 URI 和驗證提供者的 TeamFoundationServer 物件。
公用方法靜態成員 GetServer(RegisteredProjectCollection, ICredentialsProvider) 取得與指定之物件的 RegisteredProjectCollection TeamFoundationServer 物件。

回頁首

備註

這個類別的設計目的是要讓外部封裝使用 TeamFoundationServer 相同的物件執行個體。 它快取 Team Foundation Server 物件不考慮認證。 快取物件由伺服器統一資源識別元 (URI) (URI) 只索引。

執行緒安全

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

請參閱

參考

Microsoft.TeamFoundation.Client 命名空間