Repository.XFRACAS.GetAllXFRACASEntities: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:




<onlyinclude>Gets a list of XFRACAS entities connected to the Synthesis enterprise repository. Returns a '''[[NameIdPair Class|NameIDPair]]''' object array that contains all the entities connected to that repository.</onlyinclude>
<onlyinclude>Gets a list of XFRACAS entities. Returns a '''[[NameIdPair Class|NameIDPair]]''' object array that contains the entities in the XFRACAS database.</onlyinclude>


== Syntax ==
== Syntax ==

Revision as of 17:59, 16 March 2016

APIWiki.png


Member of: SynthesisAPI.Repository


Gets a list of XFRACAS entities. Returns a NameIDPair object array that contains the entities in the XFRACAS database.

Syntax

.XFRACAS.GetAllXfracasEntities()


Example

VB.NET

 'Connect to a Synthesis enterprise repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToSQLRepository("MyServer", "MyDatabase")
 
 'Get a list of all XFRACAS entities.  
 Dim ListofEntities() As NameIDPair
 ListOfEntities = MyRepository.XFRACAS.GetAllXfracasEntities()

 'Output sample: Display the number of elements in the array. 
 Dim NumberofElements As Integer
 NumberofElements = UBound(ListofEntities) - LBound(ListofEntities) + 1
 MsgBox (NumberofElements)