Language

InputStreamInvoker.Seek(Int64, SeekOrigin) Method

Definition

Sets the file channel's position relative to the selected origin. If no channel is available, throws NotSupportedException.

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

Parameters

offset
Int64

The offset to add to the selected position.

origin
SeekOrigin

The start, current position, or end of the file channel.

Returns

The file channel's position after the operation.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to