TestExecutionTraceInformation 类

在测试执行期间发生错误时封装跟踪信息。 此类不能被继承。

继承层次结构

System.Object
  Microsoft.VisualStudio.TestTools.Common.TestExecutionTraceInformation

命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

语法

声明
<SerializableAttribute> _
Public NotInheritable Class TestExecutionTraceInformation _
    Implements ICloneable, IXmlTestStore
[SerializableAttribute]
public sealed class TestExecutionTraceInformation : ICloneable, 
    IXmlTestStore
[SerializableAttribute]
public ref class TestExecutionTraceInformation sealed : ICloneable, 
    IXmlTestStore
[<Sealed>]
[<SerializableAttribute>]
type TestExecutionTraceInformation =  
    class
        interface ICloneable
        interface IXmlTestStore
    end
public final class TestExecutionTraceInformation implements ICloneable, IXmlTestStore

TestExecutionTraceInformation 类型公开以下成员。

构造函数

  名称 说明
公共方法 TestExecutionTraceInformation() 初始化 TestExecutionTraceInformation 类的新实例。
公共方法 TestExecutionTraceInformation(String) 初始化 TestExecutionTraceInformation 类的新实例。

页首

属性

  名称 说明
公共属性 Message 获取异常消息。

页首

方法

  名称 说明
公共方法 AppendTrace 向当前跟踪数据中追加更多跟踪数据。
公共方法 Clone 返回此对象的一个副本。
公共方法 Equals (重写 Object.Equals(Object)。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode (重写 Object.GetHashCode()。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 Load
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Save
公共方法 ToString 以字符串形式返回此对象。 (重写 Object.ToString()。)

页首

线程安全

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

请参见

参考

Microsoft.VisualStudio.TestTools.Common 命名空间