IsolatedStorageFileStream.Seek Method (Int64, SeekOrigin)

 

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.

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

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: