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 事件。

适用于

另请参阅