共用方式為


AsyncCausalityTracer.TracingStatusChanged 事件

定義

當用戶端開始接聽因果追蹤時引發。

// Register
static event_token TracingStatusChanged(EventHandler<TracingStatusChangedEventArgs> const& handler) const;

// Revoke with event_token
static void TracingStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
static AsyncCausalityTracer::TracingStatusChanged_revoker TracingStatusChanged(auto_revoke_t, EventHandler<TracingStatusChangedEventArgs> const& handler) const;
public static event System.EventHandler<TracingStatusChangedEventArgs> TracingStatusChanged;
function onTracingStatusChanged(eventArgs) { /* Your code */ }
Windows.Foundation.Diagnostics.AsyncCausalityTracer.addEventListener("tracingstatuschanged", onTracingStatusChanged);
Windows.Foundation.Diagnostics.AsyncCausalityTracer.removeEventListener("tracingstatuschanged", onTracingStatusChanged);
- or -
Windows.Foundation.Diagnostics.AsyncCausalityTracer.ontracingstatuschanged = onTracingStatusChanged;
Public Shared Custom Event TracingStatusChanged As EventHandler(Of TracingStatusChangedEventArgs) 

事件類型

備註

系統會傳遞記錄層級和旗標,以啟用應啟用哪些檢測點的細微決策。

停用記錄時,會引發 TracingStatusChanged 事件。

適用於

另請參閱