Cuemon .NET Framework
FromException(Exception,Encoding,Boolean) Method

The System.Exception to render human readable.
The encoding to use when rendering the exception.
if set to true the stack trace of the exception is included in the rendered result.
Renders the exception to a human readable System.String.
Syntax
'Declaration
 
Public Overloads Shared Function FromException( _
   ByVal exception As Exception, _
   ByVal encoding As Encoding, _
   ByVal includeStackTrace As Boolean _
) As String
public static string FromException( 
   Exception exception,
   Encoding encoding,
   bool includeStackTrace
)

Parameters

exception
The System.Exception to render human readable.
encoding
The encoding to use when rendering the exception.
includeStackTrace
if set to true the stack trace of the exception is included in the rendered result.

Return Value

A human readable System.String variant of the specified exception.
Requirements

Target Platforms: Windows 8, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

StringConverter Class
StringConverter Members
Overload List

 

 


| Cuemon is licensed under a The MIT License (MIT)



© 2009-2015 Weubphoria. All Rights Reserved.

Documentation made easy with Document! X by Innovasys

Send Feedback