共用方式為


IFileLoggingSession.AddLoggingChannel 方法

定義

多載

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的記錄層級。

屬性

另請參閱

適用於