MetalamaAPI documentationPost­Sharp API migrationPost­Sharp.​AspectsAspect­Instance
Open sandboxFocus

AspectInstance Class

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
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