Method MatrixGetInputIndexFromInputLabel
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixGetInputIndexFromInputLabel(int, string)
Gets the index of the input that corresponds with the specified input label.
public virtual int MatrixGetInputIndexFromInputLabel(int pid, string inputLabel)
Parameters
Returns
- int
The corresponding input index.
Examples
Element element = engine.FindElement(400, 2000);
int index = element.MatrixGetInputIndexFromInputLabel(1000, "Input 10");
Remarks
The returned index is in the range 1..nrOfInputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified input label.
MatrixGetInputIndexFromInputLabel(string, string)
Gets the index of the input that corresponds with the specified input label.
public virtual int MatrixGetInputIndexFromInputLabel(string parameterName, string inputLabel)
Parameters
Returns
- int
The corresponding input index.
Examples
Element element = engine.FindElement(400, 2000);
int index = element.MatrixGetInputIndexFromInputLabel("Example Matrix", "Input 10");
Remarks
The specified value for the parameterName
argument should be the value of the Description tag of the parameter and not the value of the Name tag.
The returned index is in the range 1..nrOfInputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified input label.