Repository.Action.GetAllActionsDictionary: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 17: Line 17:
   MyRepository.Project.SetCurrentProject(0)
   MyRepository.Project.SetCurrentProject(0)
    
    
  {{APIComment|'Get the dictionary of actions in the connected repository.}}
  {{APIComment|'Get the dictionary of actions in the current project.}}
   Dim actions As Dictionary(Of Integer, cAction)
   Dim actions As Dictionary(Of Integer, cAction)
   actions = MyRepository.Action.GetAllActionsDictionary()
   actions = MyRepository.Action.GetAllActionsDictionary()
</div>
</div>

Revision as of 20:53, 22 May 2015


Returns a dictionary containing all actions in the current project. The keys are the Ids of the actions.

Syntax

  • GetAllActionsDictionary() As Dictionary(Of Integer, cAction)

Usage Example

 'Declare a new repository connection object. 
 Dim MyRepository As New Repository
 
 'Connect to the Synthesis repository. 
 Dim Success As Boolean = False
 Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

 'Set a first available project as current. 
 MyRepository.Project.SetCurrentProject(0)
 
 'Get the dictionary of actions in the current project. 
 Dim actions As Dictionary(Of Integer, cAction)
 actions = MyRepository.Action.GetAllActionsDictionary()