PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Location­Interception­Args Class / Location­Interception­Args Methods / Location­Interception­Args.​Get­Current­Value Method

LocationInterceptionArgs.GetCurrentValue Method

Retrieves the current value of the location without overwriting the Value property.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract Object GetCurrentValue()

Return Value

Type: Object
The current value of the location, as returned by the next node in the chain of invocation (see Binding).


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