Post­Sharp Documentation / API Reference / Post­Sharp.​Extensibility Namespace / Multicast­Attribute Class / Multicast­Attribute Properties / Multicast­Attribute.​Attribute­Inheritance Property

MulticastAttribute.AttributeInheritance Property

Determines whether this attribute is inherited

Namespace:  PostSharp.Extensibility
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.48.0 (5.0.48.0)
Syntax
C#
public MulticastInheritance AttributeInheritance { get; set; }

Property Value

Type: MulticastInheritance
Remarks

If this property is not set to MulticastInheritance.None, a copy of this attribute will be propagated along the lines of inheritance of the target element:

  • On classes: all classed derived from that class.
  • On interfaces: all classes implementing this interface.
  • On virtual, abstract or interface methods: all methods overriding or implementing this method.
  • On parameters or return value of virtual, abstract or interface methods: corresponding parameter or return value on all methods or overriding or implementing the parent method of the target parameter or return value.
See Also