Repository.Pool.GetAllPools: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:APIClass|Repository Class|Repository}} == Declaration == {{APIPrefix|Public}} {{APIName|GetAllPools()}} {{APIPrefix|As}} {{APIName|cPool()}} {{APIComment|Returns a…')
 
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIClass|Repository Class|Repository}}


== Declaration  ==
== Method Syntax ==
 
{{APIPrefix|Public}}
{{APIName|GetAllPools()}}
{{APIName|GetAllPools()}}
{{APIPrefix|As}}
{{APIPrefix|As}}
{{APIName|cPool()}}
{{APIName|[[cPool Class|cPool]]()}}


{{APIComment|Returns an array containing all spare parts pools from the current project.}}
{{APIComment|Returns an array containing all spare parts pools from the current project.}}
== Usage Example ==
{{APIComment|Declare a new repository connection class.}}
        Private WithEvents MyRepository As New Repository
{{APIComment|Connect to the Synthesis repository.}}
        Dim Success As Boolean = False
        Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")
{{APIComment|Get the list of Pools in the current project in the connected repository.}}
        Dim ListOfPools() As [[cPool Class|cPool]]
        ListOfPools = MyRepository.GetAllPools()

Revision as of 21:31, 19 September 2013



Method Syntax

GetAllPools() As cPool()

Returns an array containing all spare parts pools from the current project.

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 Pools in the current project in the connected repository.

       Dim ListOfPools() As cPool
       ListOfPools = MyRepository.GetAllPools()