Skip to main content

IProject.GetModelById method

Namespace: NextDesign.Core

Description

Gets the model of the specified identifier from this project. Returns null if the specified model cannot be found. Note that you cannot get the association with this call. Use GetRelationshipById () to get the association.

This call also covers models that were deleted after the project was loaded. Use IModel.IsDeleted to evaluate whether the acquired model has been deleted.

argument

NameTypeDescription
identifierstringModel identifier

Null or empty string cannot be specified.

Return value

Exception

NameException ClassDescription
Invalid argumentExtensionArgumentExceptionWhen null or empty string is specified for identifier