ExtendedCommandHandler.OnErrorMessage(String, Exception) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當剖析器報告錯誤或資訊訊息時,由基礎結構呼叫。 預設實作不做任何動作。
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)