PipeStream.Seek(Int64, SeekOrigin) Method

Definition

Sets the current position of the current stream 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 point, relative to origin, to begin seeking from.

origin
SeekOrigin

Specifies the beginning, the end, or the current position as a reference point for offset, using a value of type SeekOrigin.

Returns

The new position in the stream.

Remarks

The Seek method is not supported in pipes and raises a NotSupportedException when it is called.

Applies to