 | ObjectWithBaseClassInheritedElementsTInheritedElement Method |
Gets a collection of objects of the defined InheritedElement-Type that are inherited
from base classes.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static IEnumerable<TInheritedElement> InheritedElements<TInheritedElement>(
this IClassWithBaseClassReference classWithBaseClass,
bool includeSelf = true
)
where TInheritedElement : CAEXBasicObject
<ExtensionAttribute>
Public Shared Function InheritedElements(Of TInheritedElement As CAEXBasicObject) (
classWithBaseClass As IClassWithBaseClassReference,
Optional includeSelf As Boolean = true
) As IEnumerable(Of TInheritedElement)
public:
[ExtensionAttribute]
generic<typename TInheritedElement>
where TInheritedElement : CAEXBasicObject
static IEnumerable<TInheritedElement>^ InheritedElements(
IClassWithBaseClassReference^ classWithBaseClass,
bool includeSelf = true
)
Parameters
- classWithBaseClass IClassWithBaseClassReference
- the base class containing the element
- includeSelf Boolean (Optional)
- if set to true the own elements are included.
Type Parameters
- TInheritedElement
- The type of the inherited element.
Return Value
IEnumerableTInheritedElementAn enumeration of all inherited elements.
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