DB2®DataReader.GetGuid Method

Gets the value of the specified column as a globally-unique identifier (GUID). This method is not supported.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Function GetGuid( _
   ByVal i As Integer _
) As Guid
[C#]
public Guid GetGuid(
   int i
);
[C++]
public: Guid GetGuid(
   int i
);
[JScript]
public function GetGuid(
   i : int
) : Guid;

Parameters

i
The zero-based column ordinal.

Return value

The value of the specified column as a GUID.

Exceptions

Exception type Condition
InvalidCastException The specified cast is not valid.
DB2Exception Invalid conversion.

Remarks

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