Skip to main content

IModel.GetDerivingModels(IPackage,string,bool) Method

Namespace: NextDesign.Core

Description

Retrieves the instance from which this instance is derived, based on the specified related class.
The specified class is identified within the package specified in the scope.

This method evaluates IContextOption.PlModelAccessMode.

This method returns an empty collection in the following cases:

  • No derived source instance associated with the corresponding derived association exists.
  • The specified associated class cannot be found.
  • The specified associated class is not a derived association.
  • No reference field to the source by the specified derived association class can be found.

Argument

NameTypeDescription
scopeIPackageScope (the package from which the search begins)
classNamestringDerived association class name
Specifies the name or fully qualified name of the derived association class.
fuzzyboolFuzzy match option
Whether to treat the className argument as the name of the class rather than its fully qualified name.
If False, it is evaluated as specifying a class whose fully qualified name matches className.
If True, it is evaluated as specifying a class whose class name matches className.

The default value is True.

Return value

  • IModelCollection