In This Topic
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).PostSharp Infrastructure. This method is called when the method returns.
Syntax
'Declaration
<PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizationAttribute(MethodExecutionAdviceOptimizations.IgnoreGetArguments Or _
MethodExecutionAdviceOptimizations.IgnoreGetInstance Or _
MethodExecutionAdviceOptimizations.IgnoreGetMethod Or _
MethodExecutionAdviceOptimizations.IgnoreSetArguments Or _
MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior Or _
MethodExecutionAdviceOptimizations.IgnoreSetInstance Or _
MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag Or _
MethodExecutionAdviceOptimizations.IgnoreSetReturnValue)>
Public Overrides NotOverridable Sub OnExit( _
ByVal As PostSharp.Aspects.MethodExecutionArgs _
)
[PostSharp.Aspects.Internals.MethodExecutionAdviceOptimization(MethodExecutionAdviceOptimizations.IgnoreGetArguments |
MethodExecutionAdviceOptimizations.IgnoreGetInstance |
MethodExecutionAdviceOptimizations.IgnoreGetMethod |
MethodExecutionAdviceOptimizations.IgnoreSetArguments |
MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior |
MethodExecutionAdviceOptimizations.IgnoreSetInstance |
MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag |
MethodExecutionAdviceOptimizations.IgnoreSetReturnValue)]
public override void OnExit(
PostSharp.Aspects.MethodExecutionArgs
)
Parameters
- eventArgs
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also
Reference
GTrace Class
GTrace Members
Base Implementation in OnExit