Loupe - Log - Monitor - Resolve
Gibraltar.Agent.PostSharp Namespace / GTimer Class / OnException Method
Event arguments specifying which method is being executed and which are its arguments.

In This Topic
    OnException Method (GTimer)
    In This Topic
    Method executed after the body of methods to which this aspect is applied, in case that the method resulted with an exception.
    Syntax
    'Declaration
     
    
    <PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizationAttribute(MethodExecutionAdviceOptimizations.IgnoreAdvice)>
    <PostSharp.Extensibility.HasInheritedAttributeAttribute()>
    <PostSharp.Aspects.Internals.RequiresMethodExecutionAdviceAnalysisAttribute()>
    Public Sub OnException( _
       ByVal args As PostSharp.Aspects.MethodExecutionArgs _
    ) 
    [PostSharp.Aspects.Internals.MethodExecutionAdviceOptimization(MethodExecutionAdviceOptimizations.IgnoreAdvice)]
    [PostSharp.Extensibility.HasInheritedAttribute()]
    [PostSharp.Aspects.Internals.RequiresMethodExecutionAdviceAnalysis()]
    public void OnException( 
       PostSharp.Aspects.MethodExecutionArgs args
    )

    Parameters

    args
    Event arguments specifying which method is being executed and which are its arguments.
    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