TeamFoundationServerFactory 类
注意:此 API 现在已过时。
TeamFoundationServer 对象的选件类工厂。 此类已过时。 使用 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) 仅标记缓存对象。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。