Table of Contents

Method ClearAllKeys

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

ClearAllKeys(SLProtocol, int)

Removes all rows from the specified table.

[Obsolete("Use protocol.ClearAllKeys instead", false)]
public static object ClearAllKeys(SLProtocol protocol, int tableId)

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

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

This method first retrieves all primary keys from the table using a NotifyProtocol type 168 call NT_GET_INDEXES. If there is at least one primary key present, the method performs a NofityProtocol type 156 call NT_DELETE_ROW, removing all rows.