AsyncCausalityTracer.TracingStatusChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當用戶端開始接聽因果追蹤時引發。
// 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 事件。