IsolatedStorageFileStream.Seek Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Sets the current position of this IsolatedStorageFileStream object to the specified value.
Assembly: mscorlib (in mscorlib.dll)
'Declaration Public Overrides Function Seek ( _ offset As Long, _ origin As SeekOrigin _ ) As Long
Parameters
- offset
- Type: System.Int64
The new position of the IsolatedStorageFileStream object.
- origin
- Type: System.IO.SeekOrigin
One of the SeekOrigin values.
| Exception | Condition |
|---|---|
| IsolatedStorageException | The isolated store has been removed. -or- Isolated storage is disabled. |
| ArgumentException | origin must be one of the SeekOrigin values. |
| NotSupportedException | The stream does not support seeking. |
| IOException | The stream is closed or an internal error has occurred. |
| ObjectDisposedException | The stream has been disposed. |
Some IsolatedStorageFileStream objects support positioning beyond the length of the stream, others will throw an exception in this case.