BinaryWriter.Seek Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the position within the current stream.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- offset
- Type: System.Int32
A byte offset relative to origin.
- origin
- Type: System.IO.SeekOrigin
A field of SeekOrigin indicating the reference point from which the new position is to be obtained.
| Exception | Condition |
|---|---|
| IOException | The file pointer was moved to an invalid location. |
| ArgumentException | The SeekOrigin value is invalid. |
Show: