PostSharp6.1/API Reference/Post­Sharp.​Aspects Namespace/Location­Interception­Args Class/Location­Interception­Args Methods/Location­Interception­Args.​Set­New­Value Method

LocationInterceptionArgs.SetNewValue Method

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

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public abstract void SetNewValue(
	Object value
)

Parameters

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

Implements

ILocationInterceptionArgs.SetNewValue(Object)
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