Click or drag to resize

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.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static T GetParent<T>(
	this ICAEXWrapper caexObject
)
where T : class, ICAEXWrapper

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
ExceptionCondition
ArgumentNullExceptioncaexObject
See Also