JAMS Developer Guide
GetMessage Method


MVPSI.JAMS Namespace > ExceptionExtensions Class : GetMessage Method
Gets exception message including all inner exception messages
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function GetMessage( _
   ByVal ex As System.Exception _
) As System.String
'Usage
 
Dim ex As System.Exception
Dim value As System.String
 
value = ExceptionExtensions.GetMessage(ex)
[System.Runtime.CompilerServices.Extension()]
public static System.string GetMessage( 
   System.Exception ex
)

Parameters

ex

Return Value

An exception message
Requirements

Target Platforms: 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

ExceptionExtensions Class
ExceptionExtensions Members