Table of Contents

Method ClearAllKeys

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

ClearAllKeys(int)

Removes all rows from the specified table.

object ClearAllKeys(int tableId)

Parameters

tableId int

The ID of the table parameter.

Returns

object

The number of rows left. In case the ClearAllKeys method has been invoked specifying an empty table, -1 is returned.

Remarks

  • Prior to DataMiner 10.1.1 (RN 27995), this method was defined as an SLProtocol extension method in the NotifyProtocol class.
  • This method first retrieves all primary keys from the table using a NotifyProtocol type 168 (NT_GET_INDEXES) call. If there is at least one primary key present, the method performs a NotifyProtocol type 156 NT_DELETE_ROW call, removing all rows.