MemoryStream.Seek Method
Sets the position within the current stream to the specified value.
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Syntax
public override long Seek (
longoffset,
SeekOriginloc
)
Parameters
- offset
The new position within the stream. This is relative to the loc parameter, and can be positive or negative. - loc
A value of type SeekOrigin, which acts as the seek reference point.
Return Value
The new position within the stream, calculated by combining the initial reference point and the offset.
Version Information
Available in the .NET Micro Framework versions 3.0, 4.0, and 4.1.