Skip to main content

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

NameTypeDescription
identifierstringModel identifier

Cannot be null or an empty string.

Return value

Exceptions

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionIf null or an empty string is specified for identifier