Table of Contents

Method SetColumns

Namespace
Skyline.DataMiner.Utils.Protocol.Extension
Assembly
Skyline.DataMiner.Utils.Protocol.Extension.dll

SetColumns(SLProtocol, IList<int>, IReadOnlyList<IEnumerable<object>>, DateTime?)

Sets the specified columns.

public static void SetColumns(this SLProtocol protocol, IList<int> columnsPid, IReadOnlyList<IEnumerable<object>> columnsValues, DateTime? dateTime = null)

Parameters

protocol SLProtocol

Link with SLProtocol process.

columnsPid IList<int>

The column parameter ID of the columns to update. First item should contain the table PID. Primary key column PID should never be provided.

columnsValues IReadOnlyList<IEnumerable<object>>

The column values for each column to update. First item should contain the primary keys as String.

dateTime DateTime?

The time stamp for the new values (in case of historySets).

Exceptions

ArgumentNullException

columnsPid or columnsValues is null.

SetColumns(SLProtocol, IDictionary<int, List<object>>, DateTime?)

Sets the specified columns.

public static void SetColumns(this SLProtocol protocol, IDictionary<int, List<object>> setColumnsData, DateTime? dateTime = null)

Parameters

protocol SLProtocol

Link with SLProtocol process.

setColumnsData IDictionary<int, List<object>>

The new column values per column PID. The first dictionary item should contain table PID as key and primary keys as value.

dateTime DateTime?

The time stamp for the new values (in case of historySets).

Exceptions

ArgumentNullException

setColumnsData is null.