Repository.DisconnectFromRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare a new repository connection class.}}
{{APIComment|'Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository
  Dim MyRepository As New Repository
 
 
{{APIComment|Connect to the Synthesis repository.}}
{{APIComment|'Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
  Dim Success As Boolean = False
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
  Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
 
 
{{APIComment|Disconnect the Synthesis repository.}}
{{APIComment|'Disconnect the Synthesis repository.}}
        MyRepository.DisconnectFromRepository()
  MyRepository.DisconnectFromRepository()

Revision as of 21:31, 23 May 2014


Disconnects from the current repository.

Syntax

  • DisconnectFromRepository()

Usage Example

 'Declare a new repository connection class. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
 
 'Disconnect the Synthesis repository. 
 MyRepository.DisconnectFromRepository()