Repository.Project.SetCurrentProject: 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}}
Sets the current project to the specified Project ID.  Returns the Boolean status.


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


{{Template:SetCurrentProject}}
{{Template:Repository.SetCurrentProject}}
 
== Parameters ==
'''ProjectID'''
Set the current project to this ID.
 
== 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|Set the current project to the desired ID.}}
        Dim IDChangeSuccess As Boolean = False
        If MyRepository.SetCurrentProject(1) Then
          IDChangeSuccess = True
        End If

Revision as of 00:41, 18 September 2013


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

Property Syntax

Template:Repository.SetCurrentProject

Parameters

ProjectID Set the current project to this ID.

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")

Set the current project to the desired ID.

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