Repository.Project.GetCurrentProject

Syntax

 * GetCurrentProjectNameIdPair

Usage Example
In this usage example, a project is opened from a Synthesis repository, and the ID of the project is retrieved. Dim MyRepository As New Repository Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\repository.rsr9") Dim ListOfProjects As NameIdPair ListOfProjects = MyRepository.GetAllProjects MyRepository.SetCurrentProject(ListOfProjects(0).ID) Dim ID As Integer ID = MyRepository.GetCurrentProject MyRepository.DisconnectFromRepository