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

In This Topic
    OnSuccess Method (GFeature)
    In This Topic
    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.).
    Syntax
    'Declaration
     
    
    <PostSharp.Aspects.Internals.MethodExecutionAdviceOptimizationAttribute(MethodExecutionAdviceOptimizations.IgnoreAdvice)>
    <PostSharp.Aspects.Internals.RequiresMethodExecutionAdviceAnalysisAttribute()>
    <PostSharp.Extensibility.HasInheritedAttributeAttribute()>
    Public Sub OnSuccess( _
       ByVal args As PostSharp.Aspects.MethodExecutionArgs _
    ) 
    [PostSharp.Aspects.Internals.MethodExecutionAdviceOptimization(MethodExecutionAdviceOptimizations.IgnoreAdvice)]
    [PostSharp.Aspects.Internals.RequiresMethodExecutionAdviceAnalysis()]
    [PostSharp.Extensibility.HasInheritedAttribute()]
    public void OnSuccess( 
       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