Specifies how the control flow will behave once it will leave the aspect method.
Namespace:
PostSharp.LaosAssembly: PostSharp.Laos (in PostSharp.Laos.dll)
Syntax
| Visual Basic (Declaration) |
|---|
Public Enumeration FlowBehavior |
| C# |
|---|
public enum FlowBehavior |
| Visual C++ |
|---|
public enum class FlowBehavior |
Members
| Member name | Description | |
|---|---|---|
| Default |
Default flow behavior for the current method. For OnEntry or OnExit, the fault flow is
Continue, for OnException it is RethrowException.
| |
| Continue |
Continue normally.
| |
| RethrowException |
The current exception will be rethrown. Available only for OnException.
| |
| Return |
Return immediately from the current method. Available only for OnEntry and
OnException. Note that you may want to set the ReturnValue
property.
|
Remarks
This enumeration is used by the MethodExecutionEventArgs class.