DB2®Xml.CacheData Property
Indicate if the data stored in the DB2Xml object's instance 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 DB2Xml object's
instance is to be cached; otherwise, false
. The default
is false
.
The value of CacheData is inherited from the object that created the DB2Xml instance (for example, a DB2DataAdapter or DB2ResultSet instance).
Remarks
If the CacheData property
is set to true
, the data in the DB2Xml instance
can be retrieved any number of times by any of the access interfaces
(for example, GetBytes, GetString,
or GetXmlReader).
This property needs to be set before the first retrieval of data from this object, or the data will not be cached.