 | CAEXBasicObjectExtensionsFirstAncestor(ICAEXWrapper, PredicateICAEXWrapper) Method |
Finds the first ancestor of the specified CAEX object which fulfils the specified predicate
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static CAEXWrapper FirstAncestor(
this ICAEXWrapper caexObject,
Predicate<ICAEXWrapper> predicate
)
<ExtensionAttribute>
Public Shared Function FirstAncestor (
caexObject As ICAEXWrapper,
predicate As Predicate(Of ICAEXWrapper)
) As CAEXWrapper
public:
[ExtensionAttribute]
static CAEXWrapper^ FirstAncestor(
ICAEXWrapper^ caexObject,
Predicate<ICAEXWrapper^>^ predicate
)
Parameters
- caexObject ICAEXWrapper
- The CAEX object.
- predicate PredicateICAEXWrapper
- The condition for the ancestor object.
Return Value
CAEXWrapper
First ancestor of the specified CAEX object or
null, if no ancestor
meeting the condition 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