Method MatrixEnableInputLine
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixEnableInputLine(string, int, bool)
Enables or disables the specified matrix input.
public virtual void MatrixEnableInputLine(string parameterName, int index, bool state)
Parameters
parameterName
stringThe name of the matrix parameter.
index
intThe index of the input.
state
booltrue
to enable the input; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableInputLine("Example Matrix", 2, false);
Remarks
The input 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.
MatrixEnableInputLine(string, string, bool)
Enables or disables the specified matrix input.
public virtual void MatrixEnableInputLine(string parameterName, string inputLineLabel, bool state)
Parameters
parameterName
stringThe name of the matrix parameter.
inputLineLabel
stringThe label of the input.
state
booltrue
to enable the input; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableInputLine("Example Matrix", "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-
There is no input with the specified label.
MatrixEnableInputLine(int, string, bool)
Enables or disables the specified matrix input.
public virtual void MatrixEnableInputLine(int pid, string inputLineLabel, bool state)
Parameters
pid
intThe ID of the matrix parameter.
inputLineLabel
stringThe label of the input.
state
booltrue
to enable the input; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableInputLine(1000, "Input 4", true);
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified label.
MatrixEnableInputLine(int, int, bool)
Enables or disables the specified matrix input.
public virtual void MatrixEnableInputLine(int pid, int index, bool state)
Parameters
pid
intThe ID of the matrix parameter.
index
intThe index of the input.
state
booltrue
to enable the input; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableInputLine(1000, 2, false);
Remarks
The input 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.