PostSharp 4.3 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Aspect­Utilities Class / Aspect­Utilities Methods
AspectUtilities Methods

The AspectUtilities type exposes the following members.

Methods
  Name Description
Public method Static member GetCurrentInstanceCredentials Obsolete.
Gets the InstanceCredentials of the calling instance. This method must be invoked from an instance method (not a static method) of a type that has been enhanced by an aspect.
Public method Static member InitializeCurrentAspects
Initializes the all the aspects of the calling instance. This method must be invoked from an instance method (not a static method) of a type that has been enhanced by an aspect.
Extension Methods
  Name Description
Public Extension Method QueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also