Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IsolatedStorageFileStream.Seek Method

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

[Visual Basic]
Overrides Public Function Seek( _
   ByVal offset As Long, _
   ByVal origin As SeekOrigin _
) As Long
public override long Seek(
 long offset,
 SeekOrigin origin
public: __int64 Seek(
 __int64 offset,
 SeekOrigin origin
public override function Seek(
   offset : long,
 origin : SeekOrigin
) : long;


The new position of the IsolatedStorageFileStream.
One of the SeekOrigin values.

Return Value

The new position in the IsolatedStorageFileStream.


Exception Type Condition
ArgumentException The origin must be one of the SeekOrigin values.


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


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

IsolatedStorageFileStream Class | IsolatedStorageFileStream Members | System.IO.IsolatedStorage Namespace

© 2016 Microsoft