Information
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
[C#]
public override long Seek(
 long offset,
 SeekOrigin origin
);
[C++]
public: __int64 Seek(
 __int64 offset,
 SeekOrigin origin
);
[JScript]
public override function Seek(
   offset : long,
 origin : SeekOrigin
) : long;

Parameters

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

Return Value

The new position in the IsolatedStorageFileStream.

Exceptions

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

Remarks

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

Requirements

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

Show:
© 2014 Microsoft