Table of Contents

Method AddRow

Namespace
Skyline.DataMiner.Scripting
Assembly
SLManagedScripting.dll

AddRow(SLProtocol, int, string)

Adds a row to the table.

[Obsolete("Use protocol.AddRow instead", false)]
public static int AddRow(SLProtocol protocol, int tableId, string row)

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

tableId int

The ID of the table parameter.

row string

The primary key of the row.

Returns

int

The 1-based internal position of the row in the table.

Remarks

This method acts as a wrapper for a NotifyProtocol type 149 call NT_ADD_ROW.

AddRow(SLProtocol, int, object[])

Adds a row to the table.

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

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

tableId int

The ID of the table parameter.

row object[]

The row data.

Returns

int

The 1-based internal position of the row in the table.

Remarks

This method acts as a wrapper for a NotifyProtocol type 149 call NT_ADD_ROW.

AddRow(SLProtocol, int, object[], bool[])

Adds a row to the table.

[Obsolete("Use protocol.AddRow instead", false)]
public static void AddRow(SLProtocol protocol, int tableId, object[] row, bool[] KeyMask)

Parameters

protocol SLProtocol

Instance that implements SLProtocol.

tableId int

The ID of the table parameter.

row object[]

The row data.

KeyMask bool[]

Sets are done in two calls. The first call only sets the columns where the corresponding mask position is set to true, the second call then sets the other columns.

Remarks

This method acts as a wrapper for a NotifyProtocol type 149 call NT_ADD_ROW.

Exceptions

ArgumentException

The row and key mask arrays have different length.

ArgumentNullException

row is null.