Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GException Class / OnException Method

OnException Method (GException)
Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception. PostSharp Infrastructure. Provides exception information to be recorded on method exit.
Syntax
'Declaration
 
<DebuggerHiddenAttribute()>
<PostSharp.Extensibility.HasInheritedAttributeAttribute(Mono.Cecil.CustomAttributeArgument[])>
<PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizationAttribute(MethodExecutionAdviceOptimizations.IgnoreGetArguments Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetInstance Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetMethod Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetMethodExecutionTag Or  _
    MethodExecutionAdviceOptimizations.IgnoreGetReturnValue Or  _
    MethodExecutionAdviceOptimizations.IgnoreMethodExecutionTag Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetArguments Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetFlowBehavior Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetInstance Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetMethodExecutionTag Or  _
    MethodExecutionAdviceOptimizations.IgnoreSetReturnValue)>
Public Overrides Sub OnException( _
   ByVal eventArgs As 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

GException Class
GException Members
Base Implementation in OnException