Parameters
- i
- The zero-based column ordinal position.
Return Value
The value of the column as a System.Guid object.
Exception | Description |
---|---|
System.InvalidCastException | The underlying SQL data type cannot be converted to System.Guid. |
System.InvalidOperationException | The MimerDataReader is not positioned on a row. |
System.IndexOutOfRangeException | The column ordinal is outside the valid range. |
The actual byte order of a Windows GUID and a UUID is slightly different due to byte order of the different fields. For example: 11223344-5566-7788-99aa-bbccddeeff00 is converted to 44332211-6655-8877-99aa-bbccddeeff00 according to byte order changes between UUID and GUID. This is handled transparently by this routine.
Use the IsDBNull method to check for database null value before calling this method.
.NET Framework
Version 2.0 or later