ServicingContext 类

继承层次结构

System.Object
  Microsoft.TeamFoundation.Framework.Server.ServicingContext

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

语法

声明
Public Class ServicingContext _
    Implements IDisposable
public class ServicingContext : IDisposable

ServicingContext 类型公开以下成员。

构造函数

  名称 说明
公共方法 ServicingContext(TeamFoundationRequestContext, IServicingResourceProvider, IServicingStepDetailLogger)
公共方法 ServicingContext(TeamFoundationRequestContext, IServicingResourceProvider, IServicingStepDetailLogger, IDictionary<String, String>, IDictionary<String, Object>, String)

页首

属性

  名称 说明
公共属性 CurrentServicingOperation
公共属性 CurrentStepGroupName
公共属性 GroupResolution
公共属性 Items
公共属性 LoggingLevel
公共属性 OperationClass
公共属性 PartitionIdToHostIdMap
公共属性 RequestContext
公共属性 ResourceProvider
公共属性 TFLogger
公共属性 Tokens

页首

方法

  名称 说明
公共方法 AddItemIfNotDefined 如果它已不存在,请将一个项。
公共方法 AddTokenIfNotDefined SetServicingToken 用于设置在步骤数据已替换的命名值为,则该步骤执行之前当调用此方法仅提供标记名称时。该标记名称之前,标记在服务的步骤数据引用传递包含“$$”。之前。设置与“ExampleToken”,步骤数据包含“$$ExampleToken$$”。 标记与一个不区分大小写的比较,但是,已替换的大小写区分比较。
公共方法 CreateComponent<TComponent> 创建可用于通信到数据库的最新版本的元素。
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
公共方法 Error
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetConnectionString 获取指定的逻辑数据库的连接字符串。如果指定类别的连接字符串未定义,并 fallbackOnFramework 为 true,结构连接字符串返回。
公共方法 GetConnectionStrings
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetItem<T>
公共方法 GetRequiredToken
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 Log
公共方法 LogInfo(String)
公共方法 LogInfo(String, array<Object[])
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ParseToken<T>
公共方法 ReplaceResources
公共方法 ReplaceTokens
公共方法 SkipChildren
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TryGetItem<T> 尝试从项目包检索项目。
公共方法 TryGetToken 尝试从标记包检索标记。
公共方法 Warn

页首

显式接口实现  

  名称 说明
显式接口实现私有方法 IDisposable.Dispose

页首

线程安全

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

请参阅

参考

Microsoft.TeamFoundation.Framework.Server 命名空间