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
parameterNamestringThe name of the matrix parameter.
indexintThe index of the input.
statebooltrueto 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-
indexis 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
parameterNamestringThe name of the matrix parameter.
inputLineLabelstringThe label of the input.
statebooltrueto 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
pidintThe ID of the matrix parameter.
inputLineLabelstringThe label of the input.
statebooltrueto 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
pidintThe ID of the matrix parameter.
indexintThe index of the input.
statebooltrueto 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-
indexis not in the range 1..nrOfInputs.