Repository.Project.SetCurrentProject

Sets the current project to the specified Project ID. Returns the Boolean status.

Parameters
ProjectID Set the current project to this ID.

Usage Example
Private WithEvents MyRepository As New Repository

Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Dim IDChangeSuccess As Boolean = False If MyRepository.SetCurrentProject(1) Then IDChangeSuccess = True End If