PostSharpAPI ReferencePost­Sharp.​AspectsOn­Method­Boundary­AspectOn­Exit
Open sandboxFocus

OnMethodBoundaryAspect.OnExit Method

OnExit(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, even when the method exists with an exception (this method is invoked from the finally block).

Declaration
[MethodExecutionAdviceOptimization]
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
public virtual void OnExit(MethodExecutionArgs args)
Parameters
Type Name Description
MethodExecutionArgs args

Event arguments specifying which method is being executed and which are its arguments.

Implements
IOnMethodBoundaryAspect.OnExit(MethodExecutionArgs)