Repository.XFRACAS.GetAllXFRACASEntities: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) mNo edit summary |
Kate Racaza (talk | contribs) mNo edit summary |
||
Line 9: | Line 9: | ||
== Example == | == Example == | ||
''' | '''VB.NET''' | ||
{{APIComment|' | {{APIComment|'Connect to a Synthesis enterprise repository.}} | ||
{{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository | ||
MyRepository.ConnectToSQLRepository({{APIString|"MyServer"}}, {{APIString|"MyDatabase"}}) | |||
{{APIComment|'Get a list of all XFRACAS entities.}} | {{APIComment|'Get a list of all XFRACAS entities.}} |
Revision as of 16:40, 10 March 2016
Member of: SynthesisAPI.Repository
Gets a list of XFRACAS entities connected to the Synthesis enterprise repository. Returns a NameIDPair object array that contains all the entities connected to that repository.
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)