Repository.Project.GetAllProjects: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
  '''VBA|VB.NET'''<br>
  '''VBA|VB.NET'''<br>
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
   {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
  {{APIComment|...'Add code to connect to repository.}} <br>
  {{APIComment|...'Add code to connect to a Synthesis repository.}} <br>
   {{APIPrefix|Dim}} ListofProjects {{APIPrefix|As}} NameIDPair
   {{APIPrefix|Dim}} ListofProjects {{APIPrefix|As}} NameIDPair
   ListOfProjects = MyRepository.Project.GetAllProjects()
   ListOfProjects = MyRepository.Project.GetAllProjects()

Revision as of 17:52, 13 July 2015

Member of: SynthesisAPI10Repository

APIWiki.png


Returns a NameIDPair object array that contains the names and ID numbers of all existing projects in the current repository.

Syntax

object.Project.GetAllProjects()

where object is a variable that represents a Repository object.


Example

VBA|VB.NET
Dim MyRepository As New Repository ...'Add code to connect to a Synthesis repository.
Dim ListofProjects As NameIDPair ListOfProjects = MyRepository.Project.GetAllProjects()