ILoggingSession.AddLoggingChannel 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddLoggingChannel(ILoggingChannel) |
將記錄通道新增至目前的記錄會話。 |
AddLoggingChannel(ILoggingChannel, LoggingLevel) |
將具有指定記錄層級的記錄通道新增至目前的記錄會話。 |
AddLoggingChannel(ILoggingChannel)
將記錄通道新增至目前的記錄會話。
public:
void AddLoggingChannel(ILoggingChannel ^ loggingChannel);
/// [Windows.Foundation.Metadata.Overload("AddLoggingChannel")]
void AddLoggingChannel(ILoggingChannel const& loggingChannel);
[Windows.Foundation.Metadata.Overload("AddLoggingChannel")]
public void AddLoggingChannel(ILoggingChannel loggingChannel);
function addLoggingChannel(loggingChannel)
Public Sub AddLoggingChannel (loggingChannel As ILoggingChannel)
參數
- loggingChannel
- ILoggingChannel
要新增的記錄通道。
- 屬性
另請參閱
適用於
AddLoggingChannel(ILoggingChannel, LoggingLevel)
將具有指定記錄層級的記錄通道新增至目前的記錄會話。
public:
void AddLoggingChannel(ILoggingChannel ^ loggingChannel, LoggingLevel maxLevel);
/// [Windows.Foundation.Metadata.Overload("AddLoggingChannelWithLevel")]
void AddLoggingChannel(ILoggingChannel const& loggingChannel, LoggingLevel const& maxLevel);
[Windows.Foundation.Metadata.Overload("AddLoggingChannelWithLevel")]
public void AddLoggingChannel(ILoggingChannel loggingChannel, LoggingLevel maxLevel);
function addLoggingChannel(loggingChannel, maxLevel)
Public Sub AddLoggingChannel (loggingChannel As ILoggingChannel, maxLevel As LoggingLevel)
參數
- loggingChannel
- ILoggingChannel
要新增的記錄通道。
- maxLevel
- LoggingLevel
loggingChannel的記錄層級。
- 屬性