共用方式為


ExtendedCommandHandler.OnErrorMessage(String, Exception) 方法

定義

當剖析器報告錯誤或資訊訊息時,由基礎結構呼叫。 預設實作不做任何動作。

protected internal virtual void OnErrorMessage(string message, Exception? exception);
abstract member OnErrorMessage : string * Exception -> unit
override this.OnErrorMessage : string * Exception -> unit
Protected Friend Overridable Sub OnErrorMessage (message As String, exception As Exception)

參數

message
String

郵件內文

exception
Exception

觀察到的例外狀況 (可能是 null)

適用於