System.IO.Pipes.PipeStream.Seek Method

Sets the current position of the current stream to the specified value.

Syntax

public override long Seek (long offset, System.IO.SeekOrigin origin)

Parameters

offset
The point, relative to origin, to begin seeking from.
origin
Specifies the beginning, the end, or the current position as a reference point for offset, using a value of type System.IO.SeekOrigin.

Returns

The new position in the stream.

Remarks

The PipeStream.Seek(long, System.IO.SeekOrigin) method is not supported in pipes and raises a NotSupportedException when it is called.

Requirements

Namespace: System.IO.Pipes
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0