System.IO.UnmanagedMemoryStream.Seek Method

Sets the current position of the current stream to the given value.

Syntax

public override long Seek (long offset, SeekOrigin loc)

Parameters

offset
The point relative to origin to begin seeking from.
loc
Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type System.IO.SeekOrigin.

Returns

The new position in the stream.

Remarks

For more information about seeking, see FileStream.Seek(long, SeekOrigin).

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0