Table of Contents

Class OdfDiagnosticsEventArgs

Namespace
OdfKit.Core
Assembly
OdfKit.dll

Provides the OdfDiagnosticsEventArgs API. 提供 OdfKit 診斷日誌事件的資料。

public class OdfDiagnosticsEventArgs : EventArgs
Inheritance
OdfDiagnosticsEventArgs
Inherited Members

Constructors

OdfDiagnosticsEventArgs(OdfDiagnosticsLevel, string, Exception?)

Provides the OdfDiagnosticsEventArgs API. 提供 OdfKit 診斷日誌事件的資料。

public OdfDiagnosticsEventArgs(OdfDiagnosticsLevel level, string message, Exception? exception = null)

Parameters

level OdfDiagnosticsLevel

診斷日誌等級

message string

診斷訊息內容

exception Exception

相關聯的例外狀況,若無則為 null

Properties

Exception

Gets the Exception value. 取得診斷相關聯的例外狀況。

public Exception? Exception { get; }

Property Value

Exception

Level

Gets the Level value. 取得診斷日誌等級。

public OdfDiagnosticsLevel Level { get; }

Property Value

OdfDiagnosticsLevel

Message

Gets the Message value. 取得診斷訊息內容。

public string Message { get; }

Property Value

string

Timestamp

Gets the Timestamp value. 取得診斷日誌記錄的 UTC 時間戳記。

public DateTime Timestamp { get; }

Property Value

DateTime