Repository.Project.GetCurrentProject

Returns a NameIDPair object that contains the project you are currently connected to.

Syntax
.Project.GetCurrentProject

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)