VirtualMethodInvocation.CreateMethodReturn Method
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Unity Application Block information can be found at the Unity Application Block site. |
Factory method that creates the correct implementation of IMethodReturn.
Namespace: Microsoft.Practices.Unity.InterceptionExtension
Assembly: Microsoft.Practices.Unity.Interception (in Microsoft.Practices.Unity.Interception.dll)
Syntax
'Declaration
Public Function CreateMethodReturn ( _
returnValue As Object, _
ParamArray outputs As Object() _
) As IMethodReturn
public IMethodReturn CreateMethodReturn(
Object returnValue,
params Object[] outputs
)
public:
virtual IMethodReturn^ CreateMethodReturn(
Object^ returnValue,
... array<Object^>^ outputs
) sealed
public final function CreateMethodReturn(
returnValue : Object,
... outputs : Object[]
) : IMethodReturn
Parameters
- returnValue
Type: System.Object
Return value to be placed in the IMethodReturn object.
- outputs
Type: array<System.Object[]
All arguments passed or returned as out/byref to the method. Note that this is the entire argument list, including in parameters.
Return Value
New IMethodReturn object.
Implements
IMethodInvocation.CreateMethodReturn(Object, array<Object[])