Share via


LoggingChannel.LoggingEnabled Ereignis

Definition

Wird ausgelöst, wenn der Protokollierungskanal an eine LoggingSession oder andere Ereignisablaufverfolgungs- und Debugtools angefügt wird.

// Register
event_token LoggingEnabled(TypedEventHandler<ILoggingChannel, IInspectable const&> const& handler) const;

// Revoke with event_token
void LoggingEnabled(event_token const* cookie) const;

// Revoke with event_revoker
LoggingChannel::LoggingEnabled_revoker LoggingEnabled(auto_revoke_t, TypedEventHandler<ILoggingChannel, IInspectable const&> const& handler) const;
public event TypedEventHandler<ILoggingChannel,object> LoggingEnabled;
function onLoggingEnabled(eventArgs) { /* Your code */ }
loggingChannel.addEventListener("loggingenabled", onLoggingEnabled);
loggingChannel.removeEventListener("loggingenabled", onLoggingEnabled);
- or -
loggingChannel.onloggingenabled = onLoggingEnabled;
Public Custom Event LoggingEnabled As TypedEventHandler(Of ILoggingChannel, Object) Implements LoggingEnabled

Ereignistyp

Implementiert

Hinweise

Das LoggingEnabled-Ereignis wird ausgelöst, wenn ein Kanal von einer Sitzung innerhalb des App-Prozesses oder von einer ETW-Sitzung im Kernelmodus genutzt wird, die mit einem Debug- oder Leistungsanalysetool gestartet wird.

Gilt für:

Weitere Informationen