GetGuid(int) Method

Syntax:

public Guid GetGuid(int ordinal)

Description:

Get the value of the specified column as a globally-unique identifier (GUID).

Parameters:

ordinal

Type: System.Int32

The zero-base column ordinal

Return Value:

Type: System.Guid

The value of the specified column

Exceptions:

Exception Condition
InvalidCastException The specified cast is not valid. This usually means the column data cannot be converted to the requested type.
InvalidOperationException The RdmDataReader is closed or there is no current row.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbDataReader.GetGuid