Method MatrixGetLabel
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixGetLabel(string, bool, int)
Gets the label of the specified matrix input or output.
public virtual string MatrixGetLabel(string parameterName, bool input, int index)
Parameters
parameterName
stringThe name of the matrix parameter.
input
booltrue
if the specified index is an input; otherwise,false
.index
intThe index of the matrix input or output.
Returns
- string
The label of the specified matrix input or output.
Examples
Element element = engine.FindElement(400, 2000);
string label = element.MatrixGetLabel("Example Matrix", true, 1);
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.
index
must be in the range 1..nrOfInputs if input
is true
.
index
must be in the range 1..nrOfOutputs if input
is false
.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-index
is not in the range 1..nrOfInputs andinput
istrue
.
-or-index
is not in the range 1..nrOfOutputs andinput
isfalse
.
MatrixGetLabel(int, bool, int)
Gets the label of the specified matrix input or output.
public virtual string MatrixGetLabel(int pid, bool input, int index)
Parameters
pid
intThe ID of the matrix parameter.
input
booltrue
if the specified index is an input; otherwise,false
.index
intThe index of the matrix input or output.
Returns
- string
The label of the specified matrix input or output.
Examples
Element element = engine.FindElement(400, 2000);
string label = element.MatrixGetLabel(1000, true, 1);
Remarks
index
must be in the range 1..nrOfInputs if input
is true
.
index
must be in the range 1..nrOfOutputs if input
is false
.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-index
is not in the range 1..nrOfInputs andinput
istrue
.
-or-index
is not in the range 1..nrOfOutputs andinput
isfalse
.