JAMS Developer Guide
FindExceptionToThrow Method


MVPSI.JAMS Namespace > ExceptionExtensions Class : FindExceptionToThrow Method
Check for an AggregateException. The WCF framework likes to wrap exceptions in AggregateExceptions
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function FindExceptionToThrow( _
   ByVal ex As System.Exception _
) As System.Exception
'Usage
 
Dim ex As System.Exception
Dim value As System.Exception
 
value = ExceptionExtensions.FindExceptionToThrow(ex)
[System.Runtime.CompilerServices.Extension()]
public static System.Exception FindExceptionToThrow( 
   System.Exception ex
)

Parameters

ex

Return Value

exceptionToThrow
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