GetValueFromRowAsInt

Method GetValueFromRowAsInt Method

Class :CA.Blocks.DataAccess.DataHelper

Namespace :CA.Blocks.DataAccess

Assembly : CA.Blocks.DataAccess.dll

Overloads

StaticGetValueFromRowAsInt(System.Data.DataRow,System.String)
StaticGetValueFromRowAsInt(System.Data.DataRow,System.Data.DataColumn)
StaticGetValueFromRowAsInt(System.Data.DataRow,System.Int32)
StaticGetValueFromRowAsInt(System.Data.DataRow,System.String)

Will get the data value from the row as an int. If the value is null an will be thrown This procedure assumes that the data is an integer, if not a cast exception will be thrown.

Parameters
NameTypeDescription
drSystem.Data.DataRow
sColumnNameSystem.String
Returns

System.Int32

StaticGetValueFromRowAsInt(System.Data.DataRow,System.Data.DataColumn)

Will get the data value from the row as an int. If the value is null an will be thrown This procedure assumes that the data is an integer, if not a cast exception will be thrown.

Parameters
NameTypeDescription
drSystem.Data.DataRow
columnSystem.Data.DataColumn
Returns

System.Int32

StaticGetValueFromRowAsInt(System.Data.DataRow,System.Int32)

Parameters
NameTypeDescription
drSystem.Data.DataRow
columnIndexSystem.Int32
Returns

System.Int32