Difference between revisions of "Repository.XFRACAS.GetAllXFRACASEntities"

From ReliaWiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
== Usage Example ==
 
== Usage Example ==
{{APIComment|Code Block}}
 
 
 
  '{{APIComment|Declare a new repository connection class.}}
 
  '{{APIComment|Declare a new repository connection class.}}
 
  {{APIPrefix|Private WithEvents MyRepository As New [[Repository Class|Repository]]}}
 
  {{APIPrefix|Private WithEvents MyRepository As New [[Repository Class|Repository]]}}
Line 15: Line 13:
 
  '{{APIComment|Get the list of XFRACAS Entities in the current project in the connected repository.}}
 
  '{{APIComment|Get the list of XFRACAS Entities in the current project in the connected repository.}}
 
  {{APIPrefix|Dim}}ListOfXFRACASEntities() {{APIPrefix|As}} [[NameIdPair Class|NameIdPair]]
 
  {{APIPrefix|Dim}}ListOfXFRACASEntities() {{APIPrefix|As}} [[NameIdPair Class|NameIdPair]]
  ListOfXFRACASEntities = MyRepository.[[Repository.GetAllXFRACASEntities|GetAllXFRACASEntities]]()
+
  ListOfXFRACASEntities = MyRepository.XFRACAS.[[Repository.GetAllXFRACASEntities|GetAllXFRACASEntities]]()
 
 
  
 
== Reformatted Usage Example ==
 
== Reformatted Usage Example ==

Revision as of 15:51, 27 May 2015


Syntax

Usage Example

' Declare a new repository connection class. 
Private WithEvents MyRepository As New Repository
' Connect to the Synthesis repository. 
DimSuccessAs Boolean=False
Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
' Get the list of XFRACAS Entities in the current project in the connected repository. 
DimListOfXFRACASEntities() As NameIdPair
ListOfXFRACASEntities = MyRepository.XFRACAS.GetAllXFRACASEntities()

Reformatted 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 list of XFRACAS Entities in the current project in the connected repository.

       Dim ListOfXFRACASEntities() As NameIdPair
       ListOfXFRACASEntities = MyRepository.GetAllXFRACASEntities()