Open sandboxFocus

Method ProceedSetValue

ProceedSetValue()

Invokes the Set Location Value semantic on the next node in the chain of invocation and stores the value of the PostSharp.Aspects.Internals.LocationLevelAdviceArgs.Value property into the location.

Declaration
void ProceedSetValue()
Remarks

Note that this method requires the value to be stored in the PostSharp.Aspects.Internals.LocationLevelAdviceArgs.Value property. If you need to retrieve the current value of the location from an OnSetValue(LocationInterceptionArgs) advice, we recommend that you use the GetCurrentValue() method.


note

This method is designed to be invoked during the execution of the advice. If you need to retrieve or store the value of the location at a different time, it is recommended to use the Binding. Indeed, a binding is stateless, while LocationInterceptionArgs instances may be shared among different aspects.