TraceLoggingService 類別

表示追蹤記錄器服務。

繼承階層架構

System.Object
  Microsoft.VisualStudio.IntelliTrace.TraceLoggingService

命名空間:  Microsoft.VisualStudio.IntelliTrace
組件:  Microsoft.IntelliTrace.11.0.0 (在 Microsoft.IntelliTrace.11.0.0.dll 中)

語法

'宣告
Public NotInheritable Class TraceLoggingService _
    Implements IDisposable
public sealed class TraceLoggingService : IDisposable
public ref class TraceLoggingService sealed : IDisposable
[<Sealed>]
type TraceLoggingService =  
    class
        interface IDisposable
    end
public final class TraceLoggingService implements IDisposable

TraceLoggingService 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 TraceLoggingService() 在目前處理序中建立追蹤記錄器服務的執行個體。
公用方法 TraceLoggingService(TraceLoggingService.GetPropertyDelegate) 在目前處理序中建立追蹤記錄器服務的執行個體。

回頁首

屬性

  名稱 說明
公用屬性 ExpectedProcesses 取得需要的處理序的作用中清單
公用屬性 TraceLoggingSessions 取得使用中追蹤記錄工作階段的集合快照。

回頁首

方法

  名稱 說明
公用方法 BeginStart 啟動服務的非同步啟動。
公用方法 BeginStop 開始服務的非同步停止。
公用方法 Dispose 處置這個物件,如果服務正在執行則將其停止。
公用方法 EndStart 等候暫止的非同步啟動完成。
公用方法 EndStop 等候暫止的非同步停止完成。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 Start 啟動服務。
公用方法 Stop 停止服務。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 說明
公用事件 Activity 活動事件。通知呼叫端有關伺服器活動。
公用事件 ExceptionEvent 例外狀況事件,這會在例外狀況事件從受監視處理序寫入時呼叫。

回頁首

執行緒安全

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

請參閱

參考

Microsoft.VisualStudio.IntelliTrace 命名空間