ReturnValue
Gets or sets the method return value.
Declaration
public object ReturnValue { get; set; }Property Value
| Type | Description |
|---|---|
| object |
Remarks
You can modify the return value only when the join point is located after a method execution (OnSuccess(MethodExecutionArgs), OnException(MethodExecutionArgs) or OnExit(MethodExecutionArgs)), or when you force the method to exit using the FlowBehavior property.
note
As a result of weaving optimizations, the value of this property may appear as null in a debugger.
If you need to inspect the value at runtime, consider disabling aspect optimizations in the debug build configuration.