UnmanagedMemoryStream.Seek Method
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the current position of the current stream to the given value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- offset
- Type: System.Int64
The point relative to origin to begin seeking from.
- loc
- Type: System.IO.SeekOrigin
Specifies the beginning, the end, or the current position as a reference point for origin, using a value of type SeekOrigin.
| Exception | Condition |
|---|---|
| IOException | An attempt was made to seek before the beginning of the stream. |
| ArgumentOutOfRangeException | The offset value is larger than the maximum size of the stream. |
| ArgumentException | loc is invalid. |
| ObjectDisposedException | The stream is closed. |
Show: