Table of Contents

Method SetRow

Namespace
Skyline.DataMiner.Scripting
Assembly
QActionHelperBaseClasses.dll

SetRow(int, object[])

Sets the content of the specified row to the provided content.

public object[] SetRow(int row, object[] data)

Parameters

row int

The 0-based index of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

Returns

object[]

Exceptions

ArgumentException

The index is smaller than 0 or larger than the number of rows in the table.

SetRow(int, object[], DateTime?)

Sets the content of the specified row to the provided content.

public object[] SetRow(int row, object[] data, DateTime? timeInfo)

Parameters

row int

The 0-based index of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

timeInfo DateTime?

Timestamp.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentOutOfRangeException

The index is smaller than 0 or larger than the number of rows in the table.

SetRow(int, object[], bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(int row, object[] data, bool useClearAndLeave)

Parameters

row int

The 0-based index of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentOutOfRangeException

The index is smaller than 0 or larger than the number of rows in the table.

SetRow(int, object[], DateTime?, bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(int row, object[] data, DateTime? timeInfo, bool useClearAndLeave)

Parameters

row int

The 0-based index of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

timeInfo DateTime?

Timestamp.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentOutOfRangeException

The index is smaller than 0 or larger than the number of rows in the table.

SetRow(QActionTableRow, bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(QActionTableRow row, bool createRow = false)

Parameters

row QActionTableRow

The row to set. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

Returns

object[]

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(QActionTableRow, bool, DateTime?)

Sets the content of the specified row to the provided content.

public object[] SetRow(QActionTableRow row, bool createRow, DateTime? timeInfo)

Parameters

row QActionTableRow

The row to set. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

timeInfo DateTime?

Timestamp.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(QActionTableRow, bool, bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(QActionTableRow row, bool createRow, bool useClearAndLeave)

Parameters

row QActionTableRow

The row to set. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(QActionTableRow, bool, DateTime?, bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(QActionTableRow row, bool createRow, DateTime? timeInfo, bool useClearAndLeave)

Parameters

row QActionTableRow

The row to set. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

timeInfo DateTime?

Timestamp.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(string, object[], bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(string row, object[] data, bool createRow = false)

Parameters

row string

Primary key of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

Returns

object[]

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(string, object[], bool, DateTime?)

Sets the content of the specified row to the provided content.

public object[] SetRow(string row, object[] data, bool createRow, DateTime? timeInfo)

Parameters

row string

Primary key of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

timeInfo DateTime?

Timestamp.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(string, object[], bool, bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(string row, object[] data, bool createRow, bool useClearAndLeave)

Parameters

row string

Primary key of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.

SetRow(string, object[], bool, DateTime?, bool)

Sets the content of the specified row to the provided content.

public object[] SetRow(string row, object[] data, bool createRow, DateTime? timeInfo, bool useClearAndLeave)

Parameters

row string

Primary key of the row.

data object[]

The row data. A null reference as cell value will preserve the value of the cell.

createRow bool

Indicates whether a row must be created if the table does not contain a row with the specified primary key.

timeInfo DateTime?

Timestamp.

useClearAndLeave bool

Indicates to consider the values corresponding with protocol.Clear and protocol.Leave as cell actions instead of an actual cell value.

Returns

object[]

Remarks

  • This overload is supported from DataMiner 10.4.2 onwards (RN 38153).

Exceptions

ArgumentException

When the row does not exist and the create row option is set to false.