 | CAEXBasicObjectExtensionsFirstAncestorT(ICAEXWrapper) Method |
Finds the first ancestor of the specified CAEX object in the given Type.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static T FirstAncestor<T>(
this ICAEXWrapper caexObject
)
where T : CAEXWrapper
<ExtensionAttribute>
Public Shared Function FirstAncestor(Of T As CAEXWrapper) (
caexObject As ICAEXWrapper
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXWrapper
static T FirstAncestor(
ICAEXWrapper^ caexObject
)
Parameters
- caexObject ICAEXWrapper
- The CAEX object.
Type Parameters
- T
- CAEX element type of the ancestor.
Return Value
T
First ancestor of the specified CAEX object or
null, if no ancestor
with this Type exists.
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