Method SetParameterIndexByKey
SetParameterIndexByKey(int, string, int, object, ValueType)
Sets the value of a cell in a table, identified by the primary key of the row and column position, with the specified value.
bool SetParameterIndexByKey(int iID, string key, int iY, object value, ValueType timeInfo)
Parameters
iIDintThe ID of the table parameter.
keystringThe primary key of the row.
iYintThe 1-based column position.
valueobjectThe value to set.
timeInfoValueTypeTimestamp.
Returns
- bool
Whether the cell value has changed.
trueindicates change; otherwise,false.
Examples
bool hasSucceeded = protocol.SetParameterIndexByKey(1000, "Row 5", 6, "MyValue", DateTime.Now);
Remarks
- The primary key can never be updated.
- This method acts as a wrapper for a NotifyProtocol type 121 call NT_PUT_PARAMETER_INDEX.
- From DataMiner 10.2.9 onwards (RN 33849), if the DateTime.Kind property of
timeInfois unspecified, the timestamp will be handled as local time.
SetParameterIndexByKey(int, string, int, object)
Sets the value of a cell in a table, identified by the primary key of the row and column position, with the specified value.
bool SetParameterIndexByKey(int iID, string key, int iY, object value)
Parameters
iIDintThe ID of the table parameter.
keystringThe primary key of the row.
iYintThe 1-based column position.
valueobjectThe value to set.
Returns
- bool
Whether the cell value has changed.
trueindicates change; otherwise,false.
Examples
bool hasSucceeded = protocol.SetParameterIndexByKey(1000, "Row 5", 6, "MyValue");
Remarks
- The primary key can never be updated.
- This method acts as a wrapper for a NotifyProtocol type 121 call NT_PUT_PARAMETER_INDEX.