Method AddRow
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
protocolSLProtocolInstance that implements SLProtocol.
tableIdintThe ID of the table parameter.
rowstringThe 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.
- If a row with the specified primary key already exists, the method does nothing. To update an existing row instead, use SetRow.
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
protocolSLProtocolInstance that implements SLProtocol.
tableIdintThe ID of the table parameter.
rowobject[]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.
- If a row with the specified primary key already exists, the method does nothing. To update an existing row instead, use SetRow.
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
protocolSLProtocolInstance that implements SLProtocol.
tableIdintThe ID of the table parameter.
rowobject[]The row data.
KeyMaskbool[]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.
- If a row with the specified primary key already exists, the method does nothing. To update an existing row instead, use SetRow.
Exceptions
- ArgumentException
The row and key mask arrays have different length.
- ArgumentNullException
rowis null.