Invoke the actual Property/Method using the Proxy or instantiate the actual object and use it when the Proxy can't handle the method.

Namespace:  NHibernate.Proxy
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function Intercept ( _
	invocation As IInvocation, _
	ParamArray args As Object() _
) As Object
C#
public Object Intercept(
	IInvocation invocation,
	params Object[] args
)
Visual C++
public:
virtual Object^ Intercept(
	IInvocation^ invocation, 
	... array<Object^>^ args
) sealed
JavaScript
function intercept(invocation, ... args);

Parameters

invocation
Type: IInvocation
The IInvocation from the generated Castle.DynamicProxy.
args
Type: array< System..::.Object >[]()[]
The parameters for the Method/Property

Return Value

The result just like the actual object was called.

Implements

IInterceptorIntercept(IInvocation, array<Object>[]()[])

See Also