Table of Contents

Method MatrixGetIndexFromLabel

Namespace
Skyline.DataMiner.Automation
Assembly
SLManagedAutomation.dll

MatrixGetIndexFromLabel(int, bool, string)

Gets the index of the input or output that corresponds with the specified input or output label.

int MatrixGetIndexFromLabel(int pid, bool input, string label)

Parameters

pid int

The ID of the matrix parameter.

input bool

true if the specified label is an input label; otherwise, false.

label string

The label of the input (or output in case input is false).

Returns

int

The corresponding index.

Remarks

The returned index is in the range 1..nrOfInputs or 1..nrOfOutputs.

MatrixGetIndexFromLabel(string, bool, string)

Gets the index of the input or output that corresponds with the specified input or output label.

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.")]
int MatrixGetIndexFromLabel(string parameterName, bool input, string label)

Parameters

parameterName string

The name of the matrix parameter.

input bool

true if the specified label is an input label; otherwise, false.

label string

The label of the input (or output in case input is false).

Returns

int

The corresponding index.

Remarks

The returned index is in the range 1..nrOfInputs or 1..nrOfOutputs.