Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Multicast / IMulticast­Attribute / Attribute­Target­Member­Attributes

Property AttributeTargetMemberAttributes

AttributeTargetMemberAttributes

Gets or sets the visibilities, scopes, virtualities, and other characteristics of members to which this attribute applies.

Declaration
MulticastAttributes AttributeTargetMemberAttributes { get; set; }
Property Value
Type Description
MulticastAttributes
Remarks

Ignored if the AttributeTargetElements are only the module, the assembly, and/or types.

The MulticastAttributes enumeration is a multi-part flag: there is one part for visibility, one for scope, one for virtuality, and so on. If you specify one part, it will override the values defined on the custom attribute definition. If you do not specify it, the values defined on the custom attribute definition will be inherited. Note that custom attributes may apply restrictions on these attributes. For instance, a custom attribute may not be valid on abstract methods. You are obviously not allowed to 'enlarge' the set of possible targets.