TransparentProxyMethodInvocation.CreateExceptionMethodReturn Method
Factory method that creates the correct implementation of IMethodReturn in the presence of an exception.
Namespace: Microsoft.Practices.Unity.InterceptionExtension
Assembly: Microsoft.Practices.Unity.Interception (in Microsoft.Practices.Unity.Interception.dll) Version: 3.0.0.0 (3.0.1304.0)
Syntax
public IMethodReturn CreateExceptionMethodReturn(
Exception ex
)
'Declaration
Public Function CreateExceptionMethodReturn (
ex As Exception
) As IMethodReturn
public:
virtual IMethodReturn^ CreateExceptionMethodReturn(
Exception^ ex
) sealed
Parameters
- ex
Type: System.Exception
Exception to be set into the returned object.
Return Value
Type: IMethodReturn
New IMethodReturn object
Implements
IMethodInvocation.CreateExceptionMethodReturn(Exception)
See Also
TransparentProxyMethodInvocation Class