Method SetCell
- Assembly
- Skyline.DataMiner.Utils.Protocol.Extension.dll
SetCell(SLProtocol, int, string, int, object, DateTime?)
Sets the value of a cell in a table, identified by the primary key of the row and column position, with the specified value.
Use null as value
to clear the cell.
The tablePid
can be retrieved with the static Parameter class.
The columnIdx
can be retrieved with the static Parameter.[table].Idx class.
public static bool SetCell(this SLProtocol protocol, int tablePid, string rowPK, int columnIdx, object value, DateTime? dateTime = null)
Parameters
protocol
SLProtocolLink with SLProtocol process.
tablePid
intThe ID of the table parameter.
rowPK
stringThe primary key of the row.
columnIdx
intThe 0-based column position.
value
objectThe new value. Use null to clear the cell.
dateTime
DateTime?The time stamp for the new values (in case of historySets).
Returns
Remarks
The primary key can never be updated.
Exceptions
- ArgumentNullException
rowPK
is null.