Udostępnij za pośrednictwem


AsyncCausalityTracer.TracingStatusChanged Event

Definition

Raised when a client starts listening to the causality trace.

// 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) 

Event Type

Remarks

The logging level and flags are passed to enable fine-grained decisions about which instrumentation points should be enabled.

The TracingStatusChanged event is raised when logging is disabled.

Applies to

See also