Repository.DisconnectFromRepository: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}}
{{Template:Repository.DisconnectFromRepository.Cmt}}
 
 
<onlyinclude>Disconnects from the current repository.</onlyinclude>


== Syntax ==
== Syntax ==
*DisconnectFromRepository()
'''.DisconnectFromRepository'''


== Usage Example ==


{{APIComment|'Declare a new repository connection class.}}
== Example ==
  Dim MyRepository As New Repository
This example assumes that a standard repository called "RSRepository1.rsr10" exists in the C: drive. The code connects to the repository and then later disconnects from it.
 
'''VBA|VB.NET'''
  {{APIComment|'Connect to the Synthesis repository.}}
   Dim Success As Boolean = False
  {{APIComment|'Connect to a standard Synthesis repository.}}  
   Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
 
   MyRepository.ConnectToRepository({{APIString|"C:\RSRepository1.rsr10"}})<br>
  {{APIComment|'Disconnect the Synthesis repository.}}
{{APIComment|...}} <br>
   MyRepository.DisconnectFromRepository()
  {{APIComment|'Disconnect from the Synthesis repository.}}  
   MyRepository.DisconnectFromRepository

Latest revision as of 21:53, 13 November 2015

APIWiki.png


Member of: SynthesisAPI.Repository


Disconnects from the current repository.

Syntax

.DisconnectFromRepository


Example

This example assumes that a standard repository called "RSRepository1.rsr10" exists in the C: drive. The code connects to the repository and then later disconnects from it.

VBA|VB.NET

 'Connect to a standard Synthesis repository.  
 Dim MyRepository As New Repository
 MyRepository.ConnectToRepository("C:\RSRepository1.rsr10")
...
'Disconnect from the Synthesis repository. MyRepository.DisconnectFromRepository