Skip to content

M_CodeJam_ExceptionExtensions_ToDiagnosticString_1

andrewvk edited this page Jul 1, 2016 · 5 revisions

ExceptionExtensions.ToDiagnosticString Method (Exception, StringBuilder)

Returns detailed exception text.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.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