 | 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.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool? ClassIsDerivedFrom<T>(
this IClassWithBaseClassReference<T> classWithReference,
string baseClassPath
)
where T : CAEXObject
<ExtensionAttribute>
Public Shared Function ClassIsDerivedFrom(Of T As CAEXObject) (
classWithReference As IClassWithBaseClassReference(Of T),
baseClassPath As String
) As Boolean?
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXObject
static Nullable<bool> ClassIsDerivedFrom(
IClassWithBaseClassReference<T>^ classWithReference,
String^ baseClassPath
)
Parameters
- classWithReference IClassWithBaseClassReferenceT
- The class with reference.
- baseClassPath String
- The base class path.
Type Parameters
- T
- The type of the CAEX class.
Return Value
NullableBooleantrue 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