Method MatrixEnableLine
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixEnableLine(string, bool, int, bool)
Enables or disables the specified matrix input or output.
public virtual void MatrixEnableLine(string parameterName, bool input, int index, bool state)
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.
state
booltrue
to enable the input or output; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableLine("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-index
is not in the range 1..nrOfInputs andinput
istrue
.
-or-index
is not in the range 1..nrOfOutputs andinput
isfalse
.
MatrixEnableLine(int, bool, string, bool)
Enables or disables the specified matrix input or output.
public virtual void MatrixEnableLine(int pid, bool input, string lineLabel, bool state)
Parameters
pid
intThe ID of the matrix parameter.
input
booltrue
if the specified index is an input; otherwise,false
.lineLabel
stringThe label of the input or output.
state
booltrue
to enable the input or output; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableLine(1000, true, "Input 4", false);
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.
MatrixEnableLine(int, bool, int, bool)
Enables or disables the specified matrix input or output.
public virtual void MatrixEnableLine(int pid, bool input, int index, bool state)
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.
state
booltrue
to enable the input or output; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableLine(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-index
is not in the range 1..nrOfInputs andinput
istrue
.
-or-index
is not in the range 1..nrOfOutputs andinput
isfalse
.
MatrixEnableLine(string, bool, string, bool)
Enables or disables the specified matrix input or output.
public virtual void MatrixEnableLine(string parameterName, bool input, string lineLabel, bool state)
Parameters
parameterName
stringThe name of the matrix parameter.
input
booltrue
if the specified index is an input; otherwise,false
.lineLabel
stringThe label of the input or output.
state
booltrue
to enable the input or output; otherwise,false
.
Examples
Element element = engine.FindElement(400, 2000);
element.MatrixEnableLine("Example Matrix", false, "Output 4", 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 input label.
-or-
There is no output with the specified output label.