FlowBehavior Enumeration
Enumerates the possible behaviors of the calling method after the calling method has returned.

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
public enum FlowBehavior
Members
  Member nameValueDescription
Default0 Default flow behavior for the current method. For OnEntry(MethodExecutionArgs), OnExit(MethodExecutionArgs) and OnSuccess(MethodExecutionArgs), the fault flow is Continue, for OnException(MethodExecutionArgs) it is RethrowException.
Continue1 Continue normally. In an OnException(MethodExecutionArgs) advice, the Continue behavior does not rethrow the exception, but continues the normal execution flow after the block protected by the advise. If there is another OnMethodBoundaryAspect aspect before the current OnMethodBoundaryAspect aspect on the current method, the Continue behavior calls the OnSuccess(MethodExecutionArgs) method of the other aspect.
RethrowException2 The current exception will be rethrown. Available only for OnException(MethodExecutionArgs).
Return3 Return immediately from the current method. Available only for OnEntry(MethodExecutionArgs) and OnException(MethodExecutionArgs). Note that you may want to set the ReturnValue property, otherwise you may get a NullReferenceException. If there is another OnMethodBoundaryAspect aspect before the current OnMethodBoundaryAspect aspect on the current method, the Return behavior skips the OnSuccess(MethodExecutionArgs) method of the other aspect. However, the OnExit(MethodExecutionArgs) method of the other aspect will be invoked.
ThrowException4 Throws the exception contained in the Exception property. Available only for OnException(MethodExecutionArgs).
Yield5 Yields a value or awaits for an awaiter. Available only for iterators and async methods with the OnEntry(MethodExecutionArgs) and OnResume(MethodExecutionArgs) advices.
Remarks

This enumeration is used by the MethodExecutionArgs class.

See Also