IProject.GetModelById method
Namespace: NextDesign.Core
Description
Gets the model with the specified identifier from this project.
Returns null if the specified model is not found.
Note that this call does not retrieve associations. Use GetRelationshipById() to get the relationship.
This call also includes models that were deleted after the project was loaded.
Evaluate IModel.IsDeleted to see if the acquired model is deleted.
argument
Name | Type | Description |
---|---|---|
identifier | string | Model identifier Cannot be null or an empty string. |
Return value
Exceptions
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null or an empty string is specified for identifier |