 | InheritanceExtensionsClassIsDerivedFromT(CAEXDocument, String, String) Method |
Determines, if the class, specified with the given class path 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 externally referenced document.
Namespace: Aml.Engine.CAEX.ExtensionsAssembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntaxpublic static bool? ClassIsDerivedFrom<T>(
this CAEXDocument document,
string classPath,
string baseClassPath
)
where T : CAEXObject
<ExtensionAttribute>
Public Shared Function ClassIsDerivedFrom(Of T As CAEXObject) (
document As CAEXDocument,
classPath As String,
baseClassPath As String
) As Boolean?
public:
[ExtensionAttribute]
generic<typename T>
where T : CAEXObject
static Nullable<bool> ClassIsDerivedFrom(
CAEXDocument^ document,
String^ classPath,
String^ baseClassPath
)
Parameters
- document CAEXDocument
- The document where the classes are searched
- classPath String
- The class path of the tested class.
- 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
CAEXDocument. 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