PostSharpAPI ReferencePost­Sharp.​AspectsIOn­Method­Boundary­AspectOn­Exception
Open sandboxFocus

IOnMethodBoundaryAspect.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
[RequiresMethodExecutionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
void OnException(MethodExecutionArgs args)
Parameters
Type Name Description
MethodExecutionArgs args

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