OracleLob.Value Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the common language runtime stream value equivalent of the underlying value.

Namespace:   System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

Public ReadOnly Property Value As Object

Property Value

Type: System.Object

For Blob, an array of type Byte[]. For Clob and NClob, a String. For null data, DBNull.

Exception Condition

The object was closed or disposed.


An Oracle error has occurred.

For Blob data types, Value returns the entire underlying data as a contiguous array of type Byte[]. For Clob and NClob data types, Value returns all the data as a String data type. For null data, Value returns DBNull. By comparing the returned values, you can distinguish among empty data, null data, and data.


A benefit of using LOB data types is the capability to retrieve large amounts of data in chunks at the client. However, when you use Value, you obtain all the data for the LOB column as one contiguous chunk, which can significantly increase application overhead.

.NET Framework
Available since 1.1
Return to top