UnmanagedMemoryStream.Seek Method (Int64, SeekOrigin)
.NET Framework (current version)
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. |
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: