Method MatrixSetOutputLabel
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixSetOutputLabel(int, string, string)
Sets the label of the specified matrix output.
public virtual void MatrixSetOutputLabel(int pid, string oldName, string newName)
Parameters
pidintThe ID of the matrix parameter.
oldNamestringThe label of the output.
newNamestringThe new output label.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetOutputLabel(1000, "Output 1", "A");
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no output with the specified label.
MatrixSetOutputLabel(int, int, string)
Sets the label of the specified matrix output.
public virtual void MatrixSetOutputLabel(int pid, int index, string newName)
Parameters
pidintThe ID of the matrix parameter.
indexintThe index of the output.
newNamestringThe new output label.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetOutputLabel(1000, 10, "A");
Remarks
index must be in the range 1..nrOfOutputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
indexis not in the range 1..nrOfOutputs.
MatrixSetOutputLabel(string, int, string)
Sets the label of the specified matrix output.
note
Please use an overload that takes the parameter ID instead to prevent issues in case the parameter Description changes.
[Obsolete("Use overloads with parameter ID instead of name.")]
public virtual void MatrixSetOutputLabel(string parameterName, int index, string newName)
Parameters
parameterNamestringThe name of the matrix parameter.
indexintThe index of the output.
newNamestringThe new output label.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetOutputLabel("Example Matrix", 10, "A");
Remarks
index must be in the range 1..nrOfOutputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
indexis not in the range 1..nrOfOutputs.
MatrixSetOutputLabel(string, string, string)
Sets the label of the specified matrix output.
note
Please use an overload that takes the parameter ID instead to prevent issues in case the parameter Description changes.
[Obsolete("Use overloads with parameter ID instead of name.")]
public virtual void MatrixSetOutputLabel(string parameterName, string oldName, string newName)
Parameters
parameterNamestringThe name of the matrix parameter.
oldNamestringThe label of the output.
newNamestringThe new output label.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetOutputLabel("Example Matrix", "Output 1", "A");
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 output with the specified label.