IModel.GetDerivedModels(string,bool) Method
Namespace: NextDesign.Core
Description
Retrieves instances derived from this instance by the specified related class.
If the related class is not specified (null), all derived instances are retrieved.
This method evaluates IContextOption.PlModelAccessMode.
This method returns an empty collection in the following cases:
- No derived 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 derived target by the specified derived association class can be found.
Argument
| Name | Type | Description |
|---|---|---|
| className | string | Derived Association Class Name Specifies the name or fully qualified name of the derived association class. If null is specified, all reference fields are used to retrieve the associated instance. The default value is null. |
| fuzzy | bool | Fuzzy 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