GetGuid method

Returns the value of the specified column as a global unique identifier (GUID).

Syntax
Visual Basic

Public Overrides Function GetGuid( _
   ByVal ordinal As Integer _
) As Guid
C#

public override Guid GetGuid(
   int ordinal
);
Parameters
  • ordinal   An ordinal number indicating the column from which the value is obtained. The numbering is zero-based.

Return value

The value of the specified column.

Remarks

The data retrieved must already be a globally-unique identifier or binary(16).

Call the SADataReader.IsDBNull method to check for null values before calling this method.

See also