[This is preliminary documentation and is subject to change.]
If there is error, converts its details to JSOnDataMap
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static JSONDataMap ToJSONDataMap(
this Exception error,
bool recurse = true,
bool stackTrace = false
)
public static JSONDataMap ToJSONDataMap(
this Exception error,
bool recurse = true,
bool stackTrace = false
)
<ExtensionAttribute>
Public Shared Function ToJSONDataMap (
error As Exception,
Optional recurse As Boolean = true,
Optional stackTrace As Boolean = false
) As JSONDataMap
<ExtensionAttribute>
Public Shared Function ToJSONDataMap (
error As Exception,
Optional recurse As Boolean = true,
Optional stackTrace As Boolean = false
) As JSONDataMap
public:
[ExtensionAttribute]
static JSONDataMap^ ToJSONDataMap(
Exception^ error,
bool recurse = true,
bool stackTrace = false
)
public:
[ExtensionAttribute]
static JSONDataMap^ ToJSONDataMap(
Exception^ error,
bool recurse = true,
bool stackTrace = false
)
static member ToJSONDataMap :
error : Exception *
?recurse : bool *
?stackTrace : bool
(* Defaults:
let _recurse = defaultArg recurse true
let _stackTrace = defaultArg stackTrace false
*)
-> JSONDataMap
static member ToJSONDataMap :
error : Exception *
?recurse : bool *
?stackTrace : bool
(* Defaults:
let _recurse = defaultArg recurse true
let _stackTrace = defaultArg stackTrace false
*)
-> JSONDataMap
Return Value
Type:
JSONDataMapUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Exception. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).