PostSharp.ILAPI ReferencePost­Sharp.​AspectsMethod­Execution­Args
Open sandboxFocus

MethodExecutionArgs Class

Arguments of advices of aspects of type OnMethodBoundaryAspect and OnExceptionAspect

Inheritance
MethodExecutionArgs
Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public class MethodExecutionArgs : AdviceArgs

Constructors

Name Description
MethodExecutionArgs(Object, Arguments)

Properties

Name Description
Arguments

Gets the arguments with which the method has been invoked.

Exception

Gets or sets the exception thrown by the target method.

FlowBehavior

Determines the control flow of the target method once the advice is exited.

Method

Gets the method being executed.

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)).

ReturnValue

Gets or sets the method return value.

YieldValue

Gets or sets the value yielded by the iterator method.