dotConnect for DB2 Documentation
Devart.Data.DB2.DB2Types Namespace / DB2Blob Structure / CacheData Property

In This Topic
    CacheData Property (DB2Blob)
    In This Topic
    Indicates if the data stored in the DB2Blob instance is to be cached.
    Syntax
    'Declaration
     
    Public ReadOnly Property CacheData As Boolean
    public bool CacheData {get;}

    Property Value

    true, if the DB2Blob instance is to be cached; otherwise, false.
    Remarks

    The value of CacheData is inherited from the object that created the DB2Blob instance (for example, a Devart.Data.DB2.DB2DataReader instance).

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

    If the CacheData property is false, applications can only retrieve the complete set of data from a DB2Blob instance once (by any of the ways): via the GetBytes method, Value property, or the ToString method. Tying to retrieve the current instance data again by any of the means results in System.InvalidOperationException.

    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also