Repository.Project.GetCurrentProject

Syntax

 * GetCurrentProjectNameIdPair

Usage Example
In this usage example, a project is opened in 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.Project.GetAllProjects MyRepository.Project.SetCurrentProject(ListOfProjects(0).ID) Dim ID As Integer ID = MyRepository.Project.GetCurrentProject MyRepository.DisconnectFromRepository