PostSharp SDK 2023.0 / / Class Reference / Post­Sharp.​Sdk.​Aspect­Weaver Namespace / Aspect­Instance­Info Class / Aspect­Instance­Info Properties / Aspect­Instance­Info.​Target­Element Property

AspectInstanceInfo.TargetElement Property

Gets the element of code to which the aspect has been applied.

Namespace:  PostSharp.Sdk.AspectWeaver
Assembly:  PostSharp.Compiler.Engine (in PostSharp.Compiler.Engine.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public MetadataDeclaration TargetElement { get; }

Property Value

Type: MetadataDeclaration
See Also