Sets the position on the current
PgSqlBlob stream.
'Declaration
Public Overrides Function Seek( _
ByVal As Long, _
ByVal As SeekOrigin _
) As Long
Parameters
- offset
- A byte offset relative to origin.
- origin
- A value of System.IO.SeekOrigin type indicating the reference point used to obtain the new position.
Return Value
The new position within the current stream.
The first line of the example sets stream position to the very first element.
myBlob.Seek(0, SeekOrigin.Begin);
Console.WriteLine(myBlob.Position);
Console.WriteLine(myBlob.ReadByte());
myBlob.Seek(0, SeekOrigin.Begin)
Console.WriteLine(myBlob.Position)
Console.WriteLine(myBlob.ReadByte())