DB2®Clob.ToString Method
Returns a string that represents the DB2Clob structure.
- Namespace:
IBM.Data.DB2Types
- Assembly:
IBM.Data.DB2
(inIBM.Data.DB2.dll
)
Syntax
[Visual Basic]
Public Overrides Function ToString As String
[C#]
public override string ToString ()
[C++]
public:
virtual String^ ToString () override
[JScript]
public override function ToString () : String
Return value
A string representing the value of the DB2Clob structure.
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 DB2Clob instance once. Any additional attempts
at retrieving data will result in an InvalidOperationException.
The specific implications of this are: - This method can only be used to retrieve data from a DB2Clob instance once.
- If you use this method to retrieve data from a DB2Clob instance, you cannot use the Value property or the GetChars method to do the same.
- If you have already used the Value property or the GetChars method to retrieve data from a DB2Clob instance, you cannot use this method to do the same.
true
,
data can be read from the DB2Clob structure, using
any of the access methods.