 | CAEXBasicObjectExtensionsGetParentT Method |
Tries to get a CAEX parent with the specified Type of the provided caexObject. If the parent is
not assignable to the provided type, the result is null.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static T GetParent<T>(
this ICAEXWrapper caexObject
)
where T : class, ICAEXWrapper
<ExtensionAttribute>
Public Shared Function GetParent(Of T As {Class, ICAEXWrapper}) (
caexObject As ICAEXWrapper
) As T
public:
[ExtensionAttribute]
generic<typename T>
where T : ref class, ICAEXWrapper
static T GetParent(
ICAEXWrapper^ caexObject
)
Parameters
- caexObject ICAEXWrapper
- The CAEX object.
Type Parameters
- T
- The expected type of the parent.
Return Value
T
The parent with the specified Type or
null.
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