Repository.Project.GetCurrentProject

Returns a NameIDPair object that represents the name and ID pair of the active project.

Syntax
.Project.GetCurrentProject

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