Method MatrixGetLockMode
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixGetLockMode(string, bool, string)
Gets a value indicating whether the specified input or output is locked.
public virtual bool MatrixGetLockMode(string parameterName, bool input, string label)
Parameters
parameterName
stringThe name of the matrix parameter.
input
booltrue
if the specified index is an input; otherwise,false
.label
stringThe label of the input or output.
Returns
- bool
The label of the specified matrix input or output.
Examples
Element element = engine.FindElement(400, 2000);
string label = element.MatrixGetLockMode("Example Matrix", true, "Input 10");
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 input label.
-or-
There is no output with the specified output label.
MatrixGetLockMode(int, bool, int)
Gets a value indicating whether the specified input or output is locked.
public virtual bool MatrixGetLockMode(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 input or output.
Returns
- bool
The label of the specified matrix input or output.
Examples
Element element = engine.FindElement(400, 2000);
string label = element.MatrixGetLockMode(1000, true, 10);
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
.
MatrixGetLockMode(int, bool, string)
Gets a value indicating whether the specified input or output is locked.
public virtual bool MatrixGetLockMode(int pid, bool input, string label)
Parameters
pid
intThe ID of the matrix parameter.
input
booltrue
if the specified index is an input; otherwise,false
.label
stringThe label of the input or output.
Returns
- bool
The label of the specified matrix input or output.
Examples
Element element = engine.FindElement(400, 2000);
string label = element.MatrixGetLockMode(1000, true, "Input 10");
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified input label.
-or-
There is no output with the specified output label.
MatrixGetLockMode(string, bool, int)
Gets a value indicating whether the specified input or output is locked.
public virtual bool MatrixGetLockMode(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 input or output.
Returns
- bool
The label of the specified matrix input or output.
Examples
Element element = engine.FindElement(400, 2000);
string label = element.MatrixGetLockMode("Example Matrix", true, 10);
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
.