Method MatrixSetInputLabel
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixSetInputLabel(string, int, string)
Sets the label of the specified input.
public virtual void MatrixSetInputLabel(string parameterName, int index, string newName)
Parameters
parameterName
stringThe name of the matrix parameter.
index
intThe index of the input.
newName
stringThe new input label.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLabel("Example Matrix", 10, "Main");
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.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-index
is not in the range 1..nrOfInputs.
MatrixSetInputLabel(string, string, string)
Sets the label of the specified input.
public virtual void MatrixSetInputLabel(string parameterName, string oldName, string newName)
Parameters
parameterName
stringThe name of the matrix parameter.
oldName
stringThe label of the input.
newName
stringThe new input label.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLabel("Example Matrix", "Input 1", "Main");
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.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified label.
MatrixSetInputLabel(int, int, string)
Sets the label of the specified input.
public virtual void MatrixSetInputLabel(int pid, int index, string newName)
Parameters
pid
intThe ID of the matrix parameter.
index
intThe index of the input.
newName
stringThe new input label.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLabel(1000, 10, "Main");
Remarks
index
must be in the range 1..nrOfInputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-index
is not in the range 1..nrOfInputs.
MatrixSetInputLabel(int, string, string)
Sets the label of the specified input.
public virtual void MatrixSetInputLabel(int pid, string oldName, string newName)
Parameters
pid
intThe ID of the matrix parameter.
oldName
stringThe label of the input.
newName
stringThe new input label.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLabel(1000, "Input 1", "Main");
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified label.