This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

AspectSpecification Class

Completely specifies an aspect instance (but not its target). An AspectSpecification either the aspect instance itself (Aspect property), either information allowing to construct the aspect (AspectConstruction) and configure the weaver (AspectConfiguration).
Inheritance Hierarchy
System.Object
  PostSharp.Aspects.AspectSpecification
    PostSharp.Aspects.AspectInstance

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.34.0 (5.0.34.0)
Syntax
C#
public class AspectSpecification

The AspectSpecification type exposes the following members.

Constructors
  NameDescription
Protected methodAspectSpecification
Initializes a new AspectSpecification when one cannot provide an aspect instance, i.e. from an ObjectConstruction and a AspectConfiguration.
Top
Properties
  NameDescription
Public propertyAspect
Gets the aspect instance.
Public propertyAspectAssemblyQualifiedTypeName
Gets the assembly-qualified type name of the aspect.
Public propertyAspectConfiguration
Gets the aspect configuration.
Public propertyAspectConstruction
Gets the aspect construction.
Public propertyAspectTypeName
Gets the type name of the aspect.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
Remarks
User code cannot create an instance of the AspectSpecification class. Always create an instance of AspectInstance instead.
See Also