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

OnMethodBoundaryAspect.OnSuccess Method

OnSuccess(MethodExecutionArgs)

Method executed after the body of methods to which this aspect is applied, but only when the method successfully returns (i.e. when no exception flies out the method.).

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

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

Implements
IOnMethodBoundaryAspect.OnSuccess(MethodExecutionArgs)