Memory Stream. Seek(Int64, SeekOrigin) Method
Sets the current position of the current stream to the given value.
public: override long Seek(long offset, System::IO::SeekOrigin loc);
public override long Seek (long offset, System.IO.SeekOrigin loc);
override this.Seek : int64 * System.IO.SeekOrigin -> int64
Public Overrides Function Seek (offset As Long, loc As SeekOrigin) As Long
The point relative to
origin to begin seeking from.
Specifies the beginning, the end, or the current position as a reference point for
origin, using a value of type SeekOrigin.
The new position in the stream.
An attempt was made to seek before the beginning of the stream.
offset value is larger than the maximum size of the stream.
loc is invalid.
The stream is closed.
For more information about seeking, see Seek.