PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Aspect­Instance Class / Aspect­Instance Properties / Aspect­Instance.​Target­Element Property

AspectInstance.TargetElement Property

Gets the code element (Assembly, Type, FieldInfo, MethodBase, PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current AspectInstance is applied.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public Object TargetElement { get; }

Property Value

Type: Object
See Also