PostSharp6.4//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: 6.4.11.0 (6.4.11.0)
Syntax
C#
public Object TargetElement { get; }

Property Value

Type: Object
See Also