Repository.Xfmea.GetXfmeaCauseControlsDictionary Method: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:API}}{{Template:APIBreadcrumb|.Repository}} <onlyinclude>Returns a dictionary object containing all controls (cXfmeaControl) currently assigned …')
 
No edit summary
 
Line 2: Line 2:




<onlyinclude>Returns a dictionary object containing all controls (cXfmeaControl) currently assigned to a certain cause in the current project. The dictionary syntax is '''Dictionary(Of Integer, cXfmeaControl)''', where the ID numbers are the keys and the '''[[CXfmeaControl Class|cXfmeaControl]]''' objects that represent the control resources are the associated values. The keys of the dictionary are the IDs of the controls. (.NET only)</onlyinclude>
<onlyinclude>Returns a dictionary object containing all controls (cXfmeaControl) currently assigned to a certain cause in the current project. The dictionary syntax is '''Dictionary(Of Integer, cXfmeaControl)''', where the ID numbers are the keys and the '''[[CXfmeaControl Class|cXfmeaControl]]''' objects that represent the control resources are the associated values. (.NET only)</onlyinclude>


== Syntax ==
== Syntax ==

Latest revision as of 17:23, 5 March 2018

APIWiki.png


Member of: SynthesisAPI.Repository


Returns a dictionary object containing all controls (cXfmeaControl) currently assigned to a certain cause in the current project. The dictionary syntax is Dictionary(Of Integer, cXfmeaControl), where the ID numbers are the keys and the cXfmeaControl objects that represent the control resources are the associated values. (.NET only)

Syntax

.Xfmea.GetXfmeaCauseControlsDictionary(CauseID)

Parameters

Cause ID

Required. The Cause ID used to obtain all associated controls.

Example

VB.NET

 'Declare a new Repository object and connect to a repository. 
  Dim MyRepository As New Repository
  MyRepository.ConnectToAccessRepository("C:\RSRepository1.rsr18")
  
 'Get a list of causes for failure #1 from project #1. 
  Dim Causes() As cCause
  Set Causes = MyRepository.Xfmea.GetAllXfmeaCauses(1)

 'Obtain all controls associated with the first item in the Causes array. 
  Dim ControlsDict() As cXfmeaControl
  ControlsDict= MyRepository.Xfmea.GetXfmeaCauseControlsDictionary(Causes(0))