AttributeInheritance
Gets or sets the inheritance mode of this attribute.
Declaration
public MulticastInheritance AttributeInheritance { get; set; }Property Value
| Type | Description |
|---|---|
| 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 classes 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 overriding or implementing the parent method of the target parameter or return value.
With Multicast, inherited instances are also multicast to the members of the derived elements; with Strict, they are not. The aspect developer can set the inheritance mode for all usages with Inheritance.