PostSharp4.3/API Reference/Post­Sharp.​Aspects.​Advices Namespace/Advice­Instance Class
AdviceInstance Class
Base class for advice instances, which can be provided dynamically by the aspect thanks to the IAdviceProvider interface.
Inheritance Hierarchy

Namespace: PostSharp.Aspects.Advices
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.48.0 (4.3.48.0)
Syntax
C#
public abstract class AdviceInstance

The AdviceInstance type exposes the following members.

Constructors
  NameDescription
Protected methodAdviceInstance
Initializes a new instance of the AdviceInstance class
Properties
  NameDescription
Public propertyDescription
A human-readable description of the current advice instance.
Public propertyLinesOfCodeAvoided
The number of lines of hand-written code avoided by this specific AdviceInstance.
Public propertyMasterAspectMember
Gets the main field or method of the aspect class that the current AdviceInstance relates to.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Remarks

The only supported dynamic advice currently is ImportLocationAdviceInstance.

See Also