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
Name | Type | Description |
---|---|---|
identifier | string | Model identifier Null or empty string cannot be specified. |
Return value
Exception
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | When null or empty string is specified for identifier |