Share via


TfsTeamProjectCollection 类

提取 Team Foundation 系统的通用结构和是 Team Foundation 元素的父选件类。

继承层次结构

System.Object
  Microsoft.TeamFoundation.Client.TfsConnection
    Microsoft.TeamFoundation.Client.TfsTeamProjectCollection

命名空间:  Microsoft.TeamFoundation.Client
程序集:  Microsoft.TeamFoundation.Client(在 Microsoft.TeamFoundation.Client.dll 中)

语法

声明
Public Class TfsTeamProjectCollection _
    Inherits TfsConnection
public class TfsTeamProjectCollection : TfsConnection

TfsTeamProjectCollection 类型公开以下成员。

构造函数

  名称 描述
公共方法 TfsTeamProjectCollection(Uri) 初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(RegisteredProjectCollection) 初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(Uri, ICredentialsProvider) 已过时。初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(Uri, TfsClientCredentials) 使用指定的凭据,初始化的新 TfsTeamProjectCollection 实例。
公共方法 TfsTeamProjectCollection(Uri, IdentityDescriptor) 初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(Uri, Boolean)
公共方法 TfsTeamProjectCollection(Uri, ICredentials) 初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(RegisteredProjectCollection, IdentityDescriptor) 初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(Uri, TfsClientCredentials, IdentityDescriptor) 使用指定的凭据,初始化的新 TfsTeamProjectCollection 实例。所指定的标识对所有操作将模拟。
公共方法 TfsTeamProjectCollection(Uri, ICredentials, ICredentialsProvider) 已过时。初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(RegisteredProjectCollection, ICredentials, ICredentialsProvider) 已过时。初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(Uri, TfsClientCredentials, IdentityDescriptor, ITfsRequestChannelFactory)
公共方法 TfsTeamProjectCollection(Uri, TfsClientCredentials, IdentityDescriptor, Boolean)
公共方法 TfsTeamProjectCollection(Uri, ICredentials, ICredentialsProvider, IdentityDescriptor) 已过时。初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(RegisteredProjectCollection, ICredentials, ICredentialsProvider, IdentityDescriptor) 已过时。初始化 TfsTeamProjectCollection 选件类的新实例。
公共方法 TfsTeamProjectCollection(Uri, TfsClientCredentials, IdentityDescriptor, ITfsRequestChannelFactory, Boolean)

页首

属性

  名称 描述
公共属性 AuthorizedIdentity 获取被授权对正在运行 Team Foundation Server 的服务器进行调用的标识。 (继承自 TfsConnection。)
公共属性 CatalogNode 获取此服务器的 CatalogNode。 (重写 TfsConnection.CatalogNode。)
受保护的属性 CatalogResourceId (继承自 TfsConnection。)
公共属性 ClientCacheDirectoryForInstance 获取用于从正在运行 Team Foundation Server 的服务器缓存数据的目录的路径。 (继承自 TfsConnection。)
公共属性 ClientCacheDirectoryForUser 应该用于缓存来自此服务器的用户特定数据的路径。如果尚未连接服务器,访问此属性将调用服务器以检索用户信息。这将类似于:%LOCALAPPDATA%\Microsoft\Team Foundation\[s_version]\Cache\[userId]\[instanceId]_[scheme] (继承自 TfsConnection。)
公共属性 ClientCredentials 获取此项目集合的凭据。 (继承自 TfsConnection。)
公共属性 ClientVolatileCacheDirectoryForInstance 应该用于从此服务器缓存实例特定的数据(将在服务器被移除或与不同用户连接时被移除)的路径。 (继承自 TfsConnection。)
公共属性 ConfigurationServer 获取此实例的 TfsConfigurationServer。
公共属性 ConnectivityFailureOnLastWebServiceCall 表明此 TfsConnection 对象发布的上次 Web 服务调用是否由于连接故障而失败。 (继承自 TfsConnection。)
公共属性 Credentials 获取此 Team Foundation Server 实例的凭据。 (继承自 TfsConnection。)
公共属性 Culture 获取或设置正在运行 Team Foundation Server 的服务器所使用的本地化环境。 (继承自 TfsConnection。)
公共属性 DisplayName 如果只有一个集合移至服务器注册这将是这将与名称的服务器名称否则为。即。
公共属性 HasAuthenticated 获取描述是否已成功验证此 TfsConnection 实例的标记的状态。 (继承自 TfsConnection。)
公共属性 InstanceId 获取标识此 Team Foundation Server 连接的 GUID。 (继承自 TfsConnection。)
公共属性 IsHostedServer 如果服务器是 Microsoft Azure 托管的 Team Foundation Server 服务器,则返回 true。 (继承自 TfsConnection。)
公共属性 Name 获取服务器的名称。 (重写 TfsConnection.Name。)
公共属性 ServerCapabilities TFS 服务器的功能 (继承自 TfsConnection。)
公共属性 SessionId 获取客户端到服务器的此实例的 GUID。 (继承自 TfsConnection。)
公共属性 TimeZone 获取或设置此 Team Foundation Server 连接的时区。 用于将日期和时间转换为 UTC。 (继承自 TfsConnection。)
公共属性 UICulture 将使用的区域性。其默认为 CultureInfo.CurrentUICulture。 (继承自 TfsConnection。)
公共属性 Uri 获取此 Team Foundation Server 连接的统一资源标识符 (URI)。 (继承自 TfsConnection。)

页首

方法

  名称 描述
公共方法 Authenticate 使用指定的凭据提供程序验证到 Team Foundation Server 的连接。 (继承自 TfsConnection。)
公共方法 Connect 连接到正在运行 Team Foundation Server 的服务器并且返回基于 connectOptions 的信息。 (继承自 TfsConnection。)
受保护的方法 CreateInternalProxy (继承自 TfsConnection。)
受保护的方法 CreateServiceInstance (继承自 TfsConnection。)
受保护的方法 CreateVssConnection (继承自 TfsConnection。)
公共方法 Dispose 通知相关的释放对象并释放 TfsConnection 的此实例。 (继承自 TfsConnection。)
公共方法 EnsureAuthenticated 如果此前未验证 Team Foundation Server,请验证对其的连接。 (继承自 TfsConnection。)
公共方法 Equals 如果指定对象等于此 TfsConnection,则返回 true。 通过比较两个 TfsConnections 的完全限定 URL 来定义等同性 (继承自 TfsConnection。)
受保护的方法 Finalize 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetAuthenticatedIdentity 获取经过服务器身份验证的标识。 (继承自 TfsConnection。)
公共方法 GetClient<T> (继承自 TfsConnection。)
公共方法静态成员 GetFullyQualifiedUriForName 获取与所指定的名称服务器的 URI。
公共方法 GetHashCode 获取此 TfsConnection 实例的哈希代码。 (继承自 TfsConnection。)
公共方法 GetService(Type) 获取请求的服务。 (继承自 TfsConnection。)
公共方法 GetService<T>() 获取请求的服务。 (继承自 TfsConnection。)
受保护的方法 GetServiceInstance (重写 TfsConnection.GetServiceInstance(Type, Object)。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 InitializeTeamFoundationObject (重写 TfsConnection.InitializeTeamFoundationObject(String, Object)。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
受保护的方法 OnConnectivityFailureStatusChanged 激发 ConnectivityFailureStatusChanged 事件。 (继承自 TfsConnection。)
公共方法 ToString 获取 TfsConnection 实例的名称。 (继承自 TfsConnection。)

页首

事件

  名称 描述
公共事件 ConnectivityFailureStatusChanged ConnectivityFailureOnLastWebServiceCall 标志的值更改时引发此事件。 (继承自 TfsConnection。)
公共事件 CredentialsChanged TeamFoundationServer 对象的凭据更改时引发此事件。 (继承自 TfsConnection。)

页首

备注

所有 TfsTeamProjectCollection 元素的通用结构:

  • 查看项目集合。

  • 提供用户凭据。

  • 提供全球化信息。

  • 访问团队项目。

线程安全

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

请参阅

参考

Microsoft.TeamFoundation.Client 命名空间