PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Method­Execution­Args Class / Method­Execution­Args Properties
MethodExecutionArgs Properties

The MethodExecutionArgs type exposes the following members.

  Name Description
Public property Arguments
Gets the arguments with which the method has been invoked.
Public property DeclarationIdentifier
Gets the DeclarationIdentifier of the declaration to which the advice has been applied.
(Inherited from AdviceArgs.)
Public property Exception
Gets the exception currently flying.
Public property FlowBehavior
Determines the control flow of the target method once the advice is exited.
Public property Instance
Gets or sets the object instance on which the method is being executed.
(Inherited from AdviceArgs.)
Public property Method
Gets the method being executed.
Public property MethodExecutionTag
User-defined state information whose lifetime is linked to the current method execution. Aspects derived from IOnMethodBoundaryAspect should use this property to save state information between different events (OnEntry(MethodExecutionArgs), OnExit(MethodExecutionArgs) and OnException(MethodExecutionArgs)).
Public property ReturnValue
Gets or sets the method return value.
Public property YieldValue
Gets or sets the value yielded by the iterator method.
See Also