Method MatrixSetLockMode
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixSetLockMode(string, bool, string, bool)
Locks or unlocks the specified matrix input or output.
public virtual void MatrixSetLockMode(string parameterName, bool input, string label, bool mode)
Parameters
parameterNamestringThe name of the matrix parameter.
inputbooltrueif the specified index is an input; otherwise,false.labelstringThe label of the input or output.
modebooltrueif the input or output must be locked; otherwise,false.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetLockMode("Example Matrix", true, "Input 4", false);
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-
inputistrueand there is no input with the specified label.
-or-
inputisfalseand there is no output with the specified label.
MatrixSetLockMode(string, bool, int, bool)
Locks or unlocks the specified matrix input or output.
public virtual void MatrixSetLockMode(string parameterName, bool input, int index, bool mode)
Parameters
parameterNamestringThe name of the matrix parameter.
inputbooltrueif the specified index is an input; otherwise,false.indexintThe index of the input or output.
modebooltrueif the input or output must be locked; otherwise,false.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetLockMode("Example Matrix", true, 4, false);
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-
indexis not in the range 1..nrOfInputs andinputistrue.
-or-
indexis not in the range 1..nrOfOutputs andinputisfalse.
MatrixSetLockMode(int, bool, int, bool)
Locks or unlocks the specified matrix input or output.
public virtual void MatrixSetLockMode(int pid, bool input, int index, bool mode)
Parameters
pidintThe ID of the matrix parameter.
inputbooltrueif the specified index is an input; otherwise,false.indexintThe index of the input or output.
modebooltrueif the input or output must be locked; otherwise,false.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetLockMode(1000, true, 4, false);
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-
indexis not in the range 1..nrOfInputs andinputistrue.
-or-
indexis not in the range 1..nrOfOutputs andinputisfalse.
MatrixSetLockMode(int, bool, string, bool)
Locks or unlocks the specified matrix input or output.
public virtual void MatrixSetLockMode(int pid, bool input, string label, bool mode)
Parameters
pidintThe ID of the matrix parameter.
inputbooltrueif the specified index is an input; otherwise,false.labelstringThe label of the input or output.
modebooltrueif the input or output must be locked; otherwise,false.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixSetLockMode(1000, true, "Input 4", false);
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
inputistrueand there is no input with the specified label.
-or-
inputisfalseand there is no output with the specified label.