OracleLob.Seek(Int64, SeekOrigin) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the position on the current OracleLob stream.
public:
override long Seek(long offset, System::IO::SeekOrigin origin);
public override long Seek (long offset, System.IO.SeekOrigin origin);
override this.Seek : int64 * System.IO.SeekOrigin -> int64
Public Overrides Function Seek (offset As Long, origin As SeekOrigin) As Long
Parameters
- offset
- Int64
A byte offset relative to origin. If offset
is negative, the new position precedes the position specified by origin
by the number of bytes specified by offset
. If offset
is zero, the new position is the position specified by origin
. If offset
is positive, the new position follows the position specified by origin
by the number of bytes specified by offset
.
- origin
- SeekOrigin
A value of type SeekOrigin indicating the reference point used to obtain the new position.
Returns
The new position within the current stream.
Exceptions
The origin
parameter does not contain a valid value.
The resulting position is beyond the length of the value.
The OracleLob object was closed or disposed.
An Oracle error has occurred.
Remarks
If offset
is negative, the new position must precede the position specified by origin
by the number of bytes specified by offset
. If offset
is zero, the new position must be the position specified by origin
. If offset
is positive, the new position must follow the position specified by origin
by the number of bytes specified by offset
.
Seeking to any location beyond the length of the stream is supported. Seeking to an odd position for CLOB
and NCLOB
data types is also supported. For more information, see the Remarks section of the Read property.