[Previous] [Contents] [Next]

Specifying Inheritance Attribute Rules


The last parameter for the AttributeUsageAttribute attribute is the inherited flag, which dictates whether the attribute can be inherited. The default for this value is false.However, if the inherited flag is set to true, its meaning is dependent on the value of the AllowMultiple flag. If the inherited flag is set to true and the AllowMultiple flag is false, the attribute will override the inherited attribute. However, if the inherited flag is set to true and the AllowMultiple flag is also set to true, the attribute accumulates on the member.

[Previous] [Contents] [Next]