Defines the semantics of an aspect that, when applied on a method,
defines an exception handler around the whole method body
and let the implementation of this interface be invoked before the
method execution (OnEntry(MethodExecutionEventArgs)), in the exception handling
block (OnException(MethodExecutionEventArgs)) and
after the method execution, in the finally block (OnExit(MethodExecutionEventArgs)).
Namespace:
PostSharp.LaosAssembly: PostSharp.Laos (in PostSharp.Laos.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Interface IOnMethodBoundaryAspect _ Implements IExceptionHandlerAspect, ILaosMethodLevelAspect, ILaosWeavableAspect, IInstanceBoundLaosAspect, _ ILaosAspect |
| C# |
|---|
public interface IOnMethodBoundaryAspect : IExceptionHandlerAspect, ILaosMethodLevelAspect, ILaosWeavableAspect, IInstanceBoundLaosAspect, ILaosAspect |
| Visual C++ |
|---|
public interface class IOnMethodBoundaryAspect : IExceptionHandlerAspect, ILaosMethodLevelAspect, ILaosWeavableAspect, IInstanceBoundLaosAspect, ILaosAspect |