Repository.Project.GetCurrentProject: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}
Gets the name and ID of the current project.


== Property Syntax==
== Property Syntax==


{{Template:GetCurrentProject}}
{{Template:Repository.GetCurrentProject}}
 
== Usage Example ==
{{APIComment|Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository
 
{{APIComment|Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
 
{{APIComment|Get the name and ID pair of the current Project in the connected repository.}}
        Dim CurrentProject As [[NameIdPair Class|NameIdPair]]
        CurrentProject = MyRepository.GetCurrentProject()

Revision as of 00:34, 18 September 2013


Gets the name and ID of the current project.

Property Syntax

Template:Repository.GetCurrentProject

Usage Example

Declare a new repository connection class.

       Private WithEvents MyRepository As New Repository

Connect to the Synthesis repository.

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

Get the name and ID pair of the current Project in the connected repository.

       Dim CurrentProject As NameIdPair
       CurrentProject = MyRepository.GetCurrentProject()