AspectInstance Class |
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 6.10.14.0 (6.10.14.0)
public sealed class AspectInstance : AspectSpecification
The AspectInstance type exposes the following members.
Name | Description | |
---|---|---|
AspectInstance(Object, IAspect) |
Initializes a new AspectInstance from a runtime aspect instance (IAspect).
| |
AspectInstance(Object, ObjectConstruction) |
Initializes a new AspectInstance from an ObjectConstruction.
| |
AspectInstance(Object, IAspect, AspectConfiguration) |
Initializes a new AspectInstance from a runtime aspect instance (IAspect)
and its AspectConfiguration.
| |
AspectInstance(Object, ObjectConstruction, AspectConfiguration) |
Initializes a new AspectInstance from an ObjectConstruction and specifies an AspectConfiguration object.
|
Name | Description | |
---|---|---|
Aspect |
Gets the aspect instance.
(Inherited from AspectSpecification.) | |
AspectAssemblyQualifiedTypeName |
Gets the assembly-qualified type name of the aspect.
(Inherited from AspectSpecification.) | |
AspectConfiguration |
Gets the aspect configuration.
(Inherited from AspectSpecification.) | |
AspectConstruction |
Gets the aspect construction.
(Inherited from AspectSpecification.) | |
AspectTypeName |
Gets the type name of the aspect.
(Inherited from AspectSpecification.) | |
RepresentAsStandalone |
Determines whether the AspectInstance should be represented as a stand-alone instance
in PostSharp Tools for Visual Studio. If false, the current AspectInstance
will be not be represented as a standalone node, and its advices will be merged with the ones provided
by the parent aspect (implementing IAspectProvider). The default value is false.
| |
TargetElement |
Gets the code element (Assembly, Type,
FieldInfo, MethodBase, PropertyInfo, EventInfo,
ParameterInfo, or LocationInfo) to which the current AspectInstance
is applied.
|