Method MatrixSetInputLockMode
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixSetInputLockMode(int, string, bool)
Locks or unlocks the specified matrix input.
public virtual void MatrixSetInputLockMode(int pid, string inputLabel, bool mode)
Parameters
pidintThe ID of the matrix parameter.
inputLabelstringThe label of the matrix input.
modebooltrueto lock the input; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode(1000, "Input 1", true);
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified label.
MatrixSetInputLockMode(int, int, bool)
Locks or unlocks the specified matrix input.
public virtual void MatrixSetInputLockMode(int pid, int index, bool mode)
Parameters
pidintThe ID of the matrix parameter.
indexintThe index of the matrix input.
modebooltrueto lock the input; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode(1000, 1, true);
Remarks
index must be in the range 1..nrOfInputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
indexis not in the range 1..nrOfInputs.
MatrixSetInputLockMode(string, int, bool)
Locks or unlocks the specified matrix input.
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 MatrixSetInputLockMode(string parameterName, int index, bool mode)
Parameters
parameterNamestringThe name of the matrix parameter.
indexintThe index of the matrix input.
modebooltrueto lock the input; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode("Example matrix", 1, true);
Remarks
index must be in the range 1..nrOfInputs.
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
indexis not in the range 1..nrOfInputs.
MatrixSetInputLockMode(string, string, bool)
Locks or unlocks the specified matrix input.
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 MatrixSetInputLockMode(string parameterName, string inputLabel, bool mode)
Parameters
parameterNamestringThe name of the matrix parameter.
inputLabelstringThe label of the matrix input.
modebooltrueto lock the input; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
dummy.MatrixSetInputLockMode("Example matrix", "Input 2", true);
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.