IsolatedStorageFileStream.Seek Method

July 28, 2014

Sets the current position of this IsolatedStorageFileStream object to the specified value.

Namespace:  System.IO.IsolatedStorage
Assembly:  mscorlib (in mscorlib.dll)

public override long Seek(
	long offset,
	SeekOrigin origin
)

Parameters

offset
Type: System.Int64
The new position of the IsolatedStorageFileStream object.
origin
Type: System.IO.SeekOrigin
One of the SeekOrigin values.

Return Value

Type: System.Int64
The new position in the IsolatedStorageFileStream object.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft