Table of Contents

Method MatrixSetInputLockMode

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

MatrixSetInputLockMode(int, string, bool)

Locks or unlocks the specified matrix input.

public virtual void MatrixSetInputLockMode(int pid, string inputLabel, bool mode)

Parameters

pid int

The ID of the matrix parameter.

inputLabel string

The label of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLockMode(1000, "Input 1", true);

Exceptions

DataMinerException

The matrix parameter was not found.
-or-
There is no input with the specified label.

MatrixSetInputLockMode(string, int, bool)

Locks or unlocks the specified matrix input.

public virtual void MatrixSetInputLockMode(string parameterName, int index, bool mode)

Parameters

parameterName string

The name of the matrix parameter.

index int

The index of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLockMode("Example matrix", 1, true);

Remarks

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.

MatrixSetInputLockMode(string, string, bool)

Locks or unlocks the specified matrix input.

public virtual void MatrixSetInputLockMode(string parameterName, string inputLabel, bool mode)

Parameters

parameterName string

The name of the matrix parameter.

inputLabel string

The label of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLockMode("Example matrix", "Input 2", 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 label.

MatrixSetInputLockMode(int, int, bool)

Locks or unlocks the specified matrix input.

public virtual void MatrixSetInputLockMode(int pid, int index, bool mode)

Parameters

pid int

The ID of the matrix parameter.

index int

The index of the matrix input.

mode bool

true to lock the input; otherwise, false.

Examples

Element element = engine.FindElement(400, 2000);
element.MatrixSetInputLockMode(1000, 1, true);

Remarks

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.