Repository.Project.GetAllProjects: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
{{Template:APIClass|Repository Class|Repository}}
{{Template:APIBreadcrumb|10|Repository}}
{{Template:Repository.GetAllProjects.Cmt}}
{{Template:API}}
Returns a '''[[NameIdPair Class|NameIDPair]]''' object array that contains the names and ID numbers of all existing projects in the current repository.


== Syntax==
== Syntax ==
*GetAllProjects(){{APIPrefix|As}}[[NameIdPair Class|NameIdPair]]()
''object''.'''Project.GetAllProjects()'''


== Usage Example ==
where ''object'' is a variable that represents a Repository object.
{{Template:RepositoryFull.Ex}}
 
 
== Example ==
'''VBA|VB.NET'''<br>
  {{APIPrefix|Dim}} MyRepository {{APIPrefix|As New}} Repository
{{APIComment|...'Add code to connect to repository.}} <br>
  {{APIPrefix|Dim}} ListofProjects {{APIPrefix|As}} NameIDPair
  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 repository.
Dim ListofProjects As NameIDPair ListOfProjects = MyRepository.Project.GetAllProjects()