Skip to main content

IProjectService.CloseProject Method

Namespace: NextDesign.Core.Runtime

Description

Closes the specified project.

Call this method to close a project instance obtained with NewProject(string, string, string) or OpenProject(string, bool) when it is no longer needed, regardless of whether you saved it or not.
If the project is not closed, a memory leak will occur.

Argument

NameTypeDescription
projectIProjectProject

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for project
Invalid operationExtensionInvalidOperationExceptionIf a closed project is specified for project