Open sandboxFocus

Property ReturnValue

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 in case you force the method to exit using the FlowBehavior property.

note

As a result of weaving optimizations, value of this property may be seen as null in a debugger. If you need to inspect the value in runtime, consider disabling aspect optimizations in the debug build configuration.