共用方式為


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)。)
公用方法 GetHashCode (覆寫 Object.GetHashCode()。)
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 Load
公用方法 Save
公用方法 ToString 傳回這個物件的字串形式。 (覆寫 Object.ToString()。)

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.TestTools.Common 命名空間