Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Aspect­Specification Class

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.39.0 (5.0.39.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.
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.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Remarks
User code cannot create an instance of the AspectSpecification class. Always create an instance of AspectInstance instead.
See Also