Click or drag to resize

InheritanceExtensionsClassIsDerivedFromT(IClassWithBaseClassReferenceT, String) Method

Determines, if the specified class is directly or indirectly (across multiple generations) a descendant of the class or identical to it, which is uniquely identified with the specified baseClass path. The base class path or the referenced class path may contain alias identifiers. If alias identifiers are present, the method tries to load the external referenced document.

Namespace: Aml.Engine.CAEX.Extensions
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public static bool? ClassIsDerivedFrom<T>(
	this IClassWithBaseClassReference<T> classWithReference,
	string baseClassPath
)
where T : CAEXObject

Parameters

classWithReference  IClassWithBaseClassReferenceT
The class with reference.
baseClassPath  String
The base class path.

Type Parameters

T
The type of the CAEX class.

Return Value

NullableBoolean
true if the class is derived, false if it is not. If no value is returned, some references could not be resolved to get the answer.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IClassWithBaseClassReferenceT. 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).
See Also