GetValueFromRowAsGuid

Method GetValueFromRowAsGuid Method

Class :CA.Blocks.DataAccess.DataHelper

Namespace :CA.Blocks.DataAccess

Assembly : CA.Blocks.DataAccess.dll

Overloads

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

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

Parameters
NameTypeDescription
drSystem.Data.DataRow
sColumnNameSystem.String
Returns

System.Guid

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

Parameters
NameTypeDescription
drSystem.Data.DataRow
columnIndexSystem.Int32
Returns

System.Guid

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

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

System.Guid