PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Multicast­Attribute Class / Multicast­Attribute Properties / Multicast­Attribute.​Attribute­Target­External­Member­Attributes Property

MulticastAttribute.AttributeTargetExternalMemberAttributes Property

Gets or sets the visibilities, scopes, virtualities, and implementation of members to which this attribute applies, when the member is external to the current module.

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public MulticastAttributes AttributeTargetExternalMemberAttributes { get; set; }

Property Value

Type: MulticastAttributes

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 one for implementation. 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.

See Also