Project.ID Property (Project)
Gets the identification number of a project. Read-only Long.
expression A variable that represents a Project object.
The ID property of a project can change when the project is closed and then opened again after other projects are opened. Use the UniqueID property if you want a constant reference to a project.