Repository.Project.GetCurrentProject

Returns a NameIDPair object that contains the name and ID number of the project you are currently connected to.

Syntax
object.Project.GetCurrentProject

where object is a variable that represents a Repository object.

Example
VBA|VB.NET MyRepository Repository MyRepository.Project.SetCurrentProject(1) Dim ProjectName String Dim ProjectID Integer ProjectName = MyRepository.Project.GetCurrentProject.Name ProjectID = MyRepository.Project.GetCurrentProject.ID  MsgBox ( & ProjectName &  & ProjectID)