Method FillArrayWithColumn
FillArrayWithColumn(SLProtocol, int, int, object[], object[], DateTime?)
Sets the specified cells of a column with the provided values.
public static object FillArrayWithColumn(SLProtocol protocol, int tableId, int columnPid, object[] keys, object[] values, DateTime? timeInfo)
Parameters
protocol
SLProtocolInstance that implements SLProtocol.
tableId
intThe ID of the table parameter.
columnPid
intThe ID of the column parameter.
keys
object[]The primary keys of the rows for which the column has to be updated.
values
object[]The values to set.
timeInfo
DateTime?Timestamp
Returns
Remarks
- This method acts as a wrapper for a NotifyProtocol type 220 call NT_FILL_ARRAY_WITH_COLUMN.
- In case the values array only contains one value, this value will be used for all specified primary keys.
- 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.
Exceptions
- ArgumentException
The length of "keys" is not equal to the length of "values", and the length of the values array does not equal 1.
FillArrayWithColumn(SLProtocol, int, int, object[], object[])
Sets the specified cells of a column with the provided values.
public static object FillArrayWithColumn(SLProtocol protocol, int tableId, int columnPid, object[] keys, object[] values)
Parameters
protocol
SLProtocolInstance that implements SLProtocol.
tableId
intThe ID of the table parameter.
columnPid
intThe ID of the column parameter.
keys
object[]The primary keys of the rows for which the column has to be updated.
values
object[]The values to set.
Returns
Remarks
- This method acts as a wrapper for a NotifyProtocol type 220 call NT_FILL_ARRAY_WITH_COLUMN.
- In case the values array only contains one value, this value will be used for all specified primary keys.
Exceptions
- ArgumentException
The length of "primaryKeys" is not equal to the length of "values", and the length of the values array does not equal 1.