Unwraps the supplied TargetInvocationException and returns the inner exception preserving the stack trace.

Namespace: NHibernate.Util
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static Exception UnwrapTargetInvocationException(
	TargetInvocationException ex
)
Visual Basic
Public Shared Function UnwrapTargetInvocationException ( _
	ex As TargetInvocationException _
) As Exception
Visual C++
public:
static Exception^ UnwrapTargetInvocationException(
	TargetInvocationException^ ex
)

Return Value

The unwrapped exception.

See Also