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.

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

Syntax

Public Overrides Function Seek ( _
    offset As Long, _
    origin As SeekOrigin _
) As Long
public override long Seek(
    long offset,
    SeekOrigin origin
)

Parameters

Return Value

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

Exceptions

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.

Remarks

Some IsolatedStorageFileStream objects support positioning beyond the length of the stream, others will throw an exception in this case.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

IsolatedStorageFileStream Class

System.IO.IsolatedStorage Namespace