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
valuesIEnumerable<string>The values to find.
Returns
- string[]
The primary keys of the rows that have the specified value for the specified column.
Remarks
Make sure the element that contains the table on which you perform the operation is active. If it is stopped, a ElementNotFoundException will be thrown.
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
valuesis null.- ArgumentException
valuescontains a null reference.- 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
valuestringThe value to find.
Returns
- string[]
The primary keys of the rows that have the specified value for the specified column.
Remarks
Make sure the element that contains the table on which you perform the operation is active. If it is stopped, a ElementNotFoundException will be thrown.
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
valueis null.- ElementNotFoundException
The element was not found in the DataMiner System.