PostSharp / / API Reference / Post­Sharp.​Aspects / Method­Interception­Aspect / On­Invoke
Open sandbox

Method OnInvoke

OnInvoke(MethodInterceptionArgs)

Method invoked instead of the method to which the aspect has been applied.

Declaration
[RequiresMethodInterceptionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
[MethodInterceptionAdviceOptimization]
public virtual void OnInvoke(MethodInterceptionArgs args)
Parameters
Type Name Description
MethodInterceptionArgs args

Advice arguments.

Implements
IMethodInterceptionAspect.OnInvoke(MethodInterceptionArgs)