IProject.AddNewRootModel method
Namespace: NextDesign.Core
Description
Adds a new model of the specified class to the project.
Even if the specified class is an abstract class, instantiation is allowed and it will be added as an element at the end of the corresponding field.
The added model is retained as an element under the project node (immediately under the project) displayed on the model navigator.
Note that if there are multiple matching classes when performing a fuzzy match, the instance of the first type-compatible class that is found is added.
Also, it can be added even if "Can be placed directly under the project?" of the specified class is not checked.
argument
Name | Type | Description |
---|---|---|
className | string | Class Name Specify the name or fully qualified name of the class. Null or empty string cannot be specified. |
Whether to treat the | fuzzy | bool |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or an empty string is specified for className |
Class not found | ExtensionTypeNotFoundException | If the specified class is not found |