Table of Contents

Method Lookup

Namespace
Skyline.DataMiner.Core.DataMinerSystem.Common
Assembly
Skyline.DataMiner.Core.DataMinerSystem.Common.dll

Lookup(IEnumerable<string>)

Gets the primary keys of the rows that have one of the specified values for the specified indexed column.

string[] Lookup(IEnumerable<string> values)

Parameters

values IEnumerable<string>

The values to find.

Returns

string[]

The primary keys of the rows that have the specified value for the specified column.

Remarks

Important: the column used for lookup needs to have the attribute indexColumn defined in the table ArrayOptions. Consider using the IDmsTable.QueryData as it may provide a more stable and efficient performance.

Exceptions

ArgumentNullException

values is null.

ArgumentException

values contains a null reference.

ElementStoppedException

The element is stopped.

ElementNotFoundException

The element was not found in the DataMiner System.

Lookup(string)

Gets the primary keys of the rows that have the specified value for the specified column.

string[] Lookup(string value)

Parameters

value string

The value to find.

Returns

string[]

The primary keys of the rows that have the specified value for the specified column.

Remarks

Important: the column used for lookup needs to have the attribute indexColumn defined in the table ArrayOptions. Consider using the IDmsTable.QueryData as it may provide a more stable and efficient performance.

Exceptions

ArgumentNullException

value is null.

ElementStoppedException

The element is stopped.

ElementNotFoundException

The element was not found in the DataMiner System.