PostSharp.ILAPI ReferencePost­Sharp.​AspectsOn­Method­Boundary­AspectOn­Exception
Open sandboxFocus

OnMethodBoundaryAspect.OnException Method

OnException(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.

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

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

Implements
IOnMethodBoundaryAspect.OnException(MethodExecutionArgs)