 | CAEXBasicObjectExtensionsDescendantsT(ICAEXWrapper, Boolean) Method |
Finds the descendants of the provided CAEX object which are of the given type.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static IEnumerable<T> Descendants<T>(
this ICAEXWrapper caexObject,
bool includeSelf = false
)
where T : CAEXWrapper
<ExtensionAttribute>
Public Shared Function Descendants(Of T As CAEXWrapper) (
caexObject As ICAEXWrapper,
Optional includeSelf As Boolean = false
) As IEnumerable(Of T)
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXWrapper
static IEnumerable<T>^ Descendants(
ICAEXWrapper^ caexObject,
bool includeSelf = false
)
Parameters
- caexObject ICAEXWrapper
- The CAEX object.
- includeSelf Boolean (Optional)
- if true, the provided CAEX object is included in the enumeration.
Type Parameters
- T
- CAEX element type of the descendants.
Return Value
IEnumerableT
The descendants of the CAEX object which are of the given type.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ICAEXWrapper. 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).
Exceptions
See Also