Repository.XFRACAS.GetAllXFRACASEntities: Difference between revisions
Jump to navigation
Jump to search
Kate Racaza (talk | contribs) No edit summary |
Lisa Hacker (talk | contribs) No edit summary |
||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:Repository.XFRACAS.GetAllXfracasEntities Method}}{{Template:API}}{{Template:APIBreadcrumb | {{DISPLAYTITLE:Repository.XFRACAS.GetAllXfracasEntities Method}}{{Template:API}}{{Template:APIBreadcrumb|.[[Repository Class|Repository]]}} | ||
<onlyinclude> | <onlyinclude>Returns an array of '''[[NameIdPair Class|NameIDPair]]''' objects (effectively Dictionaries) that represent the name and ID pairs of the XFRACAS entities in the database.</onlyinclude> | ||
== Syntax == | == Syntax == | ||
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.}} | ||
{{APIPrefix|Dim}} ListofEntities() {{APIPrefix|As}} NameIDPair | |||
ListOfEntities = MyRepository.XFRACAS.GetAllXfracasEntities() | |||
{{APIComment|'Output sample: Display the number of elements in the array.}} | {{APIComment|'Output sample: Display the number of elements in the array.}} | ||
{{APIPrefix|Dim}} NumberofElements {{APIPrefix|As}} Integer | |||
NumberofElements = UBound(ListofEntities) - LBound(ListofEntities) + 1 | |||
MsgBox (NumberofElements) |
Latest revision as of 17:52, 30 November 2017
Member of: SynthesisAPI.Repository
Returns an array of NameIDPair objects (effectively Dictionaries) that represent the name and ID pairs of the XFRACAS entities in the 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)