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>

数据。

适用于