Szerkesztés

Megosztás a következőn keresztül:


IsolatedStorageFileStream.Seek(Int64, SeekOrigin) Method

Definition

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

public:
 override long Seek(long offset, System::IO::SeekOrigin origin);
public override long Seek (long offset, System.IO.SeekOrigin origin);
override this.Seek : int64 * System.IO.SeekOrigin -> int64
Public Overrides Function Seek (offset As Long, origin As SeekOrigin) As Long

Parameters

offset
Int64

The new position of the IsolatedStorageFileStream object.

origin
SeekOrigin

One of the SeekOrigin values.

Returns

The new position in the IsolatedStorageFileStream object.

Exceptions

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.

Applies to