ILoggingChannel.LoggingEnabled 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当日志记录通道附加到 LoggingSession 或其他事件跟踪和调试工具时引发。
// 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
ILoggingChannel::LoggingEnabled_revoker LoggingEnabled(auto_revoke_t, TypedEventHandler<ILoggingChannel, IInspectable const&> const& handler) const;
event TypedEventHandler<ILoggingChannel,object> LoggingEnabled;
function onLoggingEnabled(eventArgs) { /* Your code */ }
iLoggingChannel.addEventListener("loggingenabled", onLoggingEnabled);
iLoggingChannel.removeEventListener("loggingenabled", onLoggingEnabled);
- or -
iLoggingChannel.onloggingenabled = onLoggingEnabled;
Event LoggingEnabled As TypedEventHandler(Of ILoggingChannel, Object)
事件类型
TypedEventHandler<ILoggingChannel,IInspectable>