DB2ResultSet.CacheData Property
Indicate if the data stored in the DB2ResultSet instance's current cursor position is to be cached.
- Namespace:
IBM.Data.DB2Types- Assembly:
IBM.Data.DB2(inIBM.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 DB2ResultSet object's instance is to be cached; otherwise,
false. The default is false.
Remarks
This allows a call to DB2®ResultSet.GetBytes() to be followed by a call to DB2ResultSet.GetString(). This property needs to be set before the first call to one of the two DB2ResultSet get methods from this object, or the data will not be cached.