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
protocolSLProtocolLink with SLProtocol process.
tablePidintThe ID of the table parameter.
rowPKstringThe primary key of the row.
columnIdxintThe 0-based column position.
valueobjectThe new value. Use null to clear the cell.
dateTimeDateTime?The time stamp for the new values (in case of historySets).
Returns
Remarks
The primary key can never be updated.
Exceptions
- ArgumentNullException
rowPKis null.