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
iID
intThe ID of the table parameter.
key
stringThe primary key of the row.
iY
intThe 1-based column position.
value
objectThe value to set.
timeInfo
ValueTypeTimestamp.
Returns
- bool
Whether the cell value has changed.
true
indicates 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
timeInfo
is 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
iID
intThe ID of the table parameter.
key
stringThe primary key of the row.
iY
intThe 1-based column position.
value
objectThe value to set.
Returns
- bool
Whether the cell value has changed.
true
indicates 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.