Open sandboxFocus

Class AspectInstance

In PostSharp, this class was used with IAspectProvider. In Metalama, no additional object is necessary when adding an aspect instance. Read-only access to aspect instances is provided through the IAspectInstance interface.

Inheritance
AspectInstance
Namespace: PostSharp.Aspects
Assembly: Metalama.Migration.dll
Syntax
[Obsolete("In PostSharp, this class was used with 'IAspectProvider'. In Metalama, no additional object is necessary when adding an aspect instance. Read-only access to aspect instances is provided through the 'IAspectInstance' interface.", false)]
public sealed class AspectInstance : AspectSpecification

Constructors

Name Description
AspectInstance(object, IAspect)
AspectInstance(object, IAspect, AspectConfiguration)
AspectInstance(object, ObjectConstruction)
AspectInstance(object, ObjectConstruction, AspectConfiguration)

Properties

Name Description
RepresentAsStandalone
TargetElement

Extension Methods