Share via


ILoggingSession 介面

定義

表示 來自 LoggingChannel 實例的已記錄訊息目的地。

public interface class ILoggingSession : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1646392070, 37760, 19159, 186, 245, 65, 234, 147, 16, 215, 104)]
struct ILoggingSession : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1646392070, 37760, 19159, 186, 245, 65, 234, 147, 16, 215, 104)]
public interface ILoggingSession : System.IDisposable
Public Interface ILoggingSession
Implements IDisposable
衍生
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

屬性

Name

取得記錄會話的名稱。

方法

AddLoggingChannel(ILoggingChannel)

將記錄通道新增至目前的記錄會話。

AddLoggingChannel(ILoggingChannel, LoggingLevel)

將具有指定記錄層級的記錄通道新增至目前的記錄會話。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

RemoveLoggingChannel(ILoggingChannel)

從目前的記錄會話中移除指定的記錄通道。

SaveToFileAsync(IStorageFolder, String)

將目前的記錄會話儲存至檔案。

適用於

另請參閱