PostSharpAPI ReferencePost­Sharp.​AspectsILocation­Interception­Args<T>Set­New­Value
Open sandboxFocus

ILocationInterceptionArgs<T>.SetNewValue Method

SetNewValue(T)

Sets the value of the location without overwriting the Value property.

Declaration
void SetNewValue(T value)
Parameters
Type Name Description
T value

The value to be passed to the next node in the chain of invocation (see Binding).

Remarks


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.