Method MatrixIsInputLineEnabled
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLManagedAutomation.dll
MatrixIsInputLineEnabled(int, int)
Gets a value indicating whether the specified matrix input is enabled.
public virtual bool MatrixIsInputLineEnabled(int pid, int index)
Parameters
Returns
- bool
trueif the specified matrix input is enabled; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
bool isInputEnabled = dummy.MatrixIsInputLineEnabled(1000, 4);
Remarks
The specified 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.
MatrixIsInputLineEnabled(int, string)
Gets a value indicating whether the specified matrix input is enabled.
public virtual bool MatrixIsInputLineEnabled(int pid, string lineLabel)
Parameters
Returns
- bool
trueif the specified matrix input is enabled; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
bool isInputEnabled = dummy.MatrixIsInputLineEnabled(1000, "Input 4");
Exceptions
- DataMinerException
The matrix parameter was not found.
-or-
There is no input with the specified label.
MatrixIsInputLineEnabled(string, int)
Gets a value indicating whether the specified matrix input is enabled.
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 bool MatrixIsInputLineEnabled(string parameterName, int index)
Parameters
Returns
- bool
trueif the specified matrix input is enabled; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
bool isInputEnabled = dummy.MatrixIsInputLineEnabled("Example Matrix", 4);
Remarks
The specified 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.
MatrixIsInputLineEnabled(string, string)
Gets a value indicating whether the specified matrix input is enabled.
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 bool MatrixIsInputLineEnabled(string parameterName, string lineLabel)
Parameters
parameterNamestringThe name of the matrix parameter.
lineLabelstringThe label of the matrix input.
Returns
- bool
trueif the specified matrix input is enabled; otherwise,false.
Examples
var dummy = engine.GetDummy("dummy1");
bool isInputEnabled = dummy.MatrixIsInputLineEnabled("Example Matrix", "Input 4");
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.