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>