Method GetKeys
GetKeys(int, KeyType)
Gets the primary keys or display keys of the specified table.
string[] GetKeys(int tableId, NotifyProtocol.KeyType type)
Parameters
tableId
intThe ID of the table parameter.
type
NotifyProtocol.KeyTypeSpecify KeyType.DisplayKey to retrieve the display keys.
Returns
- string[]
The primary keys or display keys of the rows present in the table.
Remarks
- Prior to DataMiner 10.1.1 (RN 27995), this method was defined as an SLProtocol extension method in the NotifyProtocol class.
- The implementation of the GetKeys method when using Index will retrieve the primary keys using SLProtocol (This results in a NotifyProtocol type 397 call NT_GET_KEYS_SLPROTOCOL).
- Using the option DisplayKey to obtain the display keys is based on SLElement (a NotifyProtocol type 168 call NT_GET_INDEXES) and as such it could under certain conditions not return the complete information or the most up to date information.
GetKeys(int)
Gets the primary keys of the specified table.
string[] GetKeys(int tableId)
Parameters
tableId
intThe ID of the table parameter.
Returns
- string[]
The primary keys of the rows present in the table.
Remarks
- Prior to DataMiner 10.1.1 (RN 27995), this method was defined as an SLProtocol extension method in the NotifyProtocol class.