PostSharp5.0/API Reference/Post­Sharp.​Aspects Namespace/ILocation­Interception­Args(T) Interface/ILocation­Interception­Args(T) Methods/ILocation­Interception­Args(T).​Set­New­Value Method/ILocation­Interception­Args(T).​Set­New­Value Method (T)

ILocationInterceptionArgs<T>.SetNewValue Method (T)

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

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
void SetNewValue(
	T value
)

Parameters

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

Note 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.
See Also