PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Custom­Attribute­Instance Class / Custom­Attribute­Instance Properties / Custom­Attribute­Instance.​Target Property

CustomAttributeInstance.Target Property

Gets the declaration on which the custom attribute is defined.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public Object Target { get; }

Property Value

Type: Object
A reflection object: Assembly, Type, MethodInfo, ConstructorInfo, ParameterInfo, PropertyInfo, EventInfo, FieldInfo.
See Also