PostSharp 4.3 / / 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: (
public Object TargetElement { get; }

Property Value

Type: Object
See Also