 | ObjectWithBaseClassGetInheritedAttributes Method |
Gets a collection of Attribute objects that are inherited from base classes. The own
attributes are included in the enumeration.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static IEnumerable<AttributeType> GetInheritedAttributes(
this IClassWithBaseClassReference classWithBaseClass,
bool includeSelf = true
)
<ExtensionAttribute>
Public Shared Function GetInheritedAttributes (
classWithBaseClass As IClassWithBaseClassReference,
Optional includeSelf As Boolean = true
) As IEnumerable(Of AttributeType)
public:
[ExtensionAttribute]
static IEnumerable<AttributeType^>^ GetInheritedAttributes(
IClassWithBaseClassReference^ classWithBaseClass,
bool includeSelf = true
)
Parameters
- classWithBaseClass IClassWithBaseClassReference
-
The class with a possible base class reference for inheritance.
- includeSelf Boolean (Optional)
- if set to true includes the own attributes.
Return Value
IEnumerableAttributeTypeA collection of Attribute objects
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IClassWithBaseClassReference. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also