共用方式為


ExceptionCodec.SetBaseProperties 方法

定義

設定所提供例外狀況的基底屬性。

public void SetBaseProperties(Exception value, string message, string stackTrace, Exception innerException, int hResult, System.Collections.Generic.Dictionary<object,object> data);
member this.SetBaseProperties : Exception * string * string * Exception * int * System.Collections.Generic.Dictionary<obj, obj> -> unit
Public Sub SetBaseProperties (value As Exception, message As String, stackTrace As String, innerException As Exception, hResult As Integer, data As Dictionary(Of Object, Object))

參數

value
Exception

數值。

message
String

訊息。

stackTrace
String

堆疊追蹤。

innerException
Exception

內部例外狀況。

hResult
Int32

HResult。

data
Dictionary<Object,Object>

資料。

適用於