LocationInterceptionArgs Class
Arguments of advices of aspect type LocationInterceptionAspect.
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.AdviceArgs
    PostSharp.Aspects.LocationInterceptionArgs

Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.30.0 (4.3.30.0)
Syntax
C#
public abstract class LocationInterceptionArgs : AdviceArgs, 
	ILocationInterceptionArgs

The LocationInterceptionArgs type exposes the following members.

Properties
  NameDescription
Public propertyBinding
Gets an interface that allows to invoke the next node in the chain of invocation of the intercepted method.
Public propertyDeclarationIdentifier
Gets the DeclarationIdentifier of the declaration to which the advice has been applied.
(Inherited from AdviceArgs.)
Public propertyIndex
Gets the current index arguments (in case of a property with parameters).
Public propertyInstance
Gets or sets the object instance on which the method is being executed.
(Inherited from AdviceArgs.)
Public propertyLocation
Gets the location (field, property or parameter) related to the aspect or advice being executed.
Public propertyLocationFullName
Gets the full name (including the full name of the declaring type) of the location (field, property or parameter) related to the aspect or advice being executed.
Public propertyLocationName
Gets the name of the location (field, property or parameter) related to the aspect or advice being executed.
Public propertyValue
Gets or sets the location value.
Top
Methods
  NameDescription
Public methodExecute<TPayload>
Executes a delegate for the current LocationInterceptionArgs. This method allows to
Public methodGetCurrentValue
Retrieves the current value of the location without overwriting the Value property.
Public methodProceedGetValue
Invokes the Get Location Value semantic on the next node in the chain of invocation and stores the location value in the Value property.
Public methodProceedSetValue
Invokes the Set Location Value semantic on the next node in the chain of invocation and stores the value of the Value property into the location.
Public methodSetNewValue
Sets the value of the location without overwriting the Value property.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
Remarks
Note Note
As a result of weaving optimizations, instances of classes derived from AdviceArgs may be shared among different aspects. Therefore, aspect code should not attempt to access this object once the control has been given over to the next node in the chain of invocation. Consider working with aspect bindings if you need such deferred execution.
Note Note
Aspect weaving optimizations may also cause an advice parameter of this type to be seen null when inspecting it in a debugger. If you need to inspect the instance in runtime, consider disabling aspect optimizations in the debug build configuration.
See Also