Skip to content

M_CodeJam_ExceptionExtensions_ToDiagnosticString_1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

ExceptionExtensions.ToDiagnosticString Method (Exception, StringBuilder)

Returns detailed exception text.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static StringBuilder ToDiagnosticString(
	this Exception exception,
	StringBuilder stringBuilder
)

VB

<ExtensionAttribute>
Public Shared Function ToDiagnosticString ( 
	exception As Exception,
	stringBuilder As StringBuilder
) As StringBuilder

F#

[<ExtensionAttribute>]
static member ToDiagnosticString : 
        exception : Exception * 
        stringBuilder : StringBuilder -> StringBuilder 

Parameters

 

exception
Type: System.Exception
Exception to process.
stringBuilder
Type: System.Text.StringBuilder
StringBuilder instance.

Return Value

Type: StringBuilder
Detailed exception text.

Usage 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).

See Also

Reference

ExceptionExtensions Class
ToDiagnosticString Overload
CodeJam Namespace

Clone this wiki locally