DB2®Blob.Value Property

Gets the value stored in the DB2Blob structure.

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

Syntax


[Visual Basic]
Public ReadOnly Property Value As Byte()
[C#]
public byte[] Value {get;}
[C++]
public: __property unsigned char __gc[] get_Value();
[JScript]
public function get Value() : byte[];

Property value

A byte array representing the DB2Blob instance.

Exceptions

Exception type Condition
InvalidOperationException There is no more data to return.

Remarks

If the CacheData property is false, applications can only retrieve the complete set of data from a DB2Blob instance once. Any additional attempts at retrieving data will result in an InvalidOperationException. The specific implications of this are:
  • This property can only be used to retrieve data from a DB2Blob instance once.
  • If you use this property to retrieve data from a DB2Blob instance, you cannot use the ToString or GetBytes methods to do the same.
  • If you have already used the ToString or GetBytes methods to retrieve data from a DB2Blob instance, you cannot use this property to do the same.
If the CacheData property is true, data can be read from the DB2Blob structure, using any of the access methods.