Repository.Project.GetAllProjects: Difference between revisions
Jump to navigation
Jump to search
Alex Ulanov (talk | contribs) |
Kate Racaza (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Template: | {{Template:APIBreadcrumb|10|Repository}} | ||
{{Template: | {{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 == | ||
''object''.'''Project.GetAllProjects()''' | |||
== | where ''object'' is a variable that represents a Repository object. | ||
{{ | |||
== 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
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()