Class OdfDiagnosticsEventArgs
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
levelOdfDiagnosticsLevel診斷日誌等級
messagestring診斷訊息內容
exceptionException相關聯的例外狀況,若無則為 null
Properties
Exception
Gets the Exception value. 取得診斷相關聯的例外狀況。
public Exception? Exception { get; }
Property Value
Level
Gets the Level value. 取得診斷日誌等級。
public OdfDiagnosticsLevel Level { get; }
Property Value
Message
Gets the Message value. 取得診斷訊息內容。
public string Message { get; }
Property Value
Timestamp
Gets the Timestamp value. 取得診斷日誌記錄的 UTC 時間戳記。
public DateTime Timestamp { get; }