TfsTeamProjectCollectionFactory 类

TfsTeamProjectCollection 对象的选件类工厂。

继承层次结构

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 类型公开以下成员。

属性

  名称 说明
公共属性静态成员 Collections

页首

方法

  名称 说明
公共方法静态成员 GetTeamProjectCollection(Uri) 获取与指定的 URI 的服务器的 TfsTeamProjectCollection 实例。
公共方法静态成员 GetTeamProjectCollection(RegisteredProjectCollection) 获取与指定的 RegisteredProjectCollection 实例的 TfsTeamProjectCollection 实例。
公共方法静态成员 GetTeamProjectCollection(Uri, ICredentialsProvider) 已废弃不用。获取与指定的 URI 和回退凭据提供程序的服务器上 TfsTeamProjectCollection 实例。
公共方法静态成员 GetTeamProjectCollection(RegisteredProjectCollection, ICredentialsProvider) 已废弃不用。获取与指定的 RegisteredProjectCollection 实例和回退凭据提供程序的 TfsTeamProjectCollection 实例。
公共方法静态成员 GetTeamProjectCollection(String, Boolean, Boolean) 检索为特定服务器上使用的 TfsTeamProjectCollection 对象。
公共方法静态成员 RemoveTeamProjectCollection

页首

备注

此选件类旨在使外部程序包使用 TfsTeamProjectCollection 对象的同一实例。 它缓存不考虑凭据的 TfsTeamProjectCollection 对象。 服务器统一资源标识符 (uri) 仅标记缓存对象 (URI)。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.TeamFoundation.Client 命名空间