ConnectedService 类

此选件类具有所有“public”信息,而且机密数据。 它 not* 序列化私钥值的 *does,这些 customers 端中获取在要求。

继承层次结构

System.Object
  Microsoft.TeamFoundation.Server.Core.ConnectedService

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

语法

声明
<ClassVisibilityAttribute(ClientVisibility.Public, ClientVisibility.Private)> _
<RequiredClientServiceAttribute("TeamFoundationStrongBoxService", "StrongBox")> _
Public Class ConnectedService
[ClassVisibilityAttribute(ClientVisibility.Public, ClientVisibility.Private)]
[RequiredClientServiceAttribute("TeamFoundationStrongBoxService", "StrongBox")]
public class ConnectedService

ConnectedService 类型公开以下成员。

构造函数

  名称 说明
公共方法 ConnectedService ConnectedService 的构造函数

页首

属性

  名称 说明
公共属性 CredentialsXmlInfo 在 XML 的凭据提供有关连接的格式设置为在 StrongBoxItemInfo 包含的此服务。
公共属性 EndpointInfo 对 StrongBoxItemInfo 包含的此服务的特定 URI。
公共属性 OAuthTokenInfo 创建连接的 servcie 用户的 OAuth 标记。
公共属性 ServiceMetadata 服务元数据 (包括该名称的 ID),友好名称、说明、类型、TeamProject 和 ProjectId

页首

方法

  名称 说明
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetCredentialsXml 在 XML 的凭据提供有关连接设置到此服务。
公共方法 GetEndpoint 对于此服务的特定 URI。
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetOAuthToken 创建连接的 servcie 用户的 OAuth 标记。
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

线程安全

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

请参阅

参考

Microsoft.TeamFoundation.Server.Core 命名空间