OnExit Method

MNG Profiler

MNG.Direct Documentation


Meta data about the method being called.
OnExit Method
Handler: Called at the end of the method. Stops profiling the method and logs the results.
Syntax
'Declaration
 
<PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizationAttribute(MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetArguments Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetArguments Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetInstance Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetInstance Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetException Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetReturnValue Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetReturnValue Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetYieldValue Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetYieldValue Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetDeclarationIdentifier)>
<PostSharp.Aspects.Internals.DebuggerAspectMethodAttribute()>
Public Overrides NotOverridable Sub OnExit( _
   ByVal args As PostSharp.Aspects.MethodExecutionArgs _
) 
'Usage
 
Dim instance As ProfileAttribute
Dim args As PostSharp.Aspects.MethodExecutionArgs
 
instance.OnExit(args)
[PostSharp.Aspects.Internals.MethodExecutionAdviceOptimization(MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior | 
    MethodExecutionAdviceOptimizations.IgnoreGetArguments | 
    MethodExecutionAdviceOptimizations.IgnoreSetArguments | 
    MethodExecutionAdviceOptimizations.IgnoreGetInstance | 
    MethodExecutionAdviceOptimizations.IgnoreSetInstance | 
    MethodExecutionAdviceOptimizations.IgnoreGetException | 
    MethodExecutionAdviceOptimizations.IgnoreGetReturnValue | 
    MethodExecutionAdviceOptimizations.IgnoreSetReturnValue | 
    MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag | 
    MethodExecutionAdviceOptimizations.IgnoreGetYieldValue | 
    MethodExecutionAdviceOptimizations.IgnoreSetYieldValue | 
    MethodExecutionAdviceOptimizations.IgnoreGetDeclarationIdentifier)]
[PostSharp.Aspects.Internals.DebuggerAspectMethod()]
public override void OnExit( 
   PostSharp.Aspects.MethodExecutionArgs args
)
[PostSharp.Aspects.Internals.MethodExecutionAdviceOptimization(MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior | 
    MethodExecutionAdviceOptimizations.IgnoreGetArguments | 
    MethodExecutionAdviceOptimizations.IgnoreSetArguments | 
    MethodExecutionAdviceOptimizations.IgnoreGetInstance | 
    MethodExecutionAdviceOptimizations.IgnoreSetInstance | 
    MethodExecutionAdviceOptimizations.IgnoreGetException | 
    MethodExecutionAdviceOptimizations.IgnoreGetReturnValue | 
    MethodExecutionAdviceOptimizations.IgnoreSetReturnValue | 
    MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag | 
    MethodExecutionAdviceOptimizations.IgnoreGetYieldValue | 
    MethodExecutionAdviceOptimizations.IgnoreSetYieldValue | 
    MethodExecutionAdviceOptimizations.IgnoreGetDeclarationIdentifier)]
[PostSharp.Aspects.Internals.DebuggerAspectMethod()]
public:
void OnExit( 
   PostSharp.Aspects.MethodExecutionArgs^ args
) override 

Parameters

args
Meta data about the method being called.
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