DB2®DataReader.CacheData Property

Indicate if the data stored in the DB2DataReader instance's current cursor position is to be cached.

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

Syntax


[Visual Basic]
Public Property CacheData As Boolean
[C#]
public bool CacheData {get; set;}
[C++]
public: __property bool get_CacheData();
public: __property void set_CacheData(bool);
[JScript]
public function get CacheData() : Boolean;
public function set CacheData(Boolean);

Property value

true if the DB2DataReader object's instance is to be cached; otherwise, false. The default is false.

Remarks

If the CacheData property is set to true, the data in the DB2DataReader instance can be retrieved any number of times by any of the access interfaces (for example, GetDB2String or GetInt16).

This property needs to be set before the first retrieval of data from this object, or the data will not be cached.