Skip to main content

IModel.GetRefRelatedModels(IPackage,string,bool) Method

Namespace: NextDesign.Core

Description

Gets instances that have a reference relationship with this instance by the specified related class.
The specified class is identified from the package specified by the scope.

This method evaluates IContextOption.PlModelAccessMode.

This method returns an empty collection in the following cases:

  • There is no instance related by the corresponding reference relationship
  • The specified related class cannot be found
  • The reference field by the specified related class cannot be found

If the specified related class is a self-referential relationship, both the source and destination relationships are evaluated.

Arguments

NameTypeDescription
scopeIPackageScope (Package that is the base point of the search range)
classNamestringAssociated class name
Specify the name of the associated class or the fully qualified name.
fuzzyboolFuzzy match option
Whether to treat the className argument as the name of the class instead of the 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