DB2DataReader.GetStream Method

Gets the value of the specified XML column as a System.IO.Stream object.

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

Syntax


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

Parameters

i
The zero-based column ordinal.

Return value

The value of the specified XML column as a Stream object.

Exceptions

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

Remarks

No conversions are performed. The data to be retrieved must be of the DB2Type.Xml type.

The following table describes the mapping between the return object data type and the data server data type.
DB2®Type Data Type Db2® for z/OS® Data Type Informix® Data Type
Xml XML  

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