Export (0) Print
Expand All

PipeStream::Seek Method

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

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

virtual long long Seek(
	long long offset, 
	SeekOrigin origin
) override


Type: System::Int64

The point, relative to origin, to begin seeking from.

Type: System.IO::SeekOrigin

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

Return Value

Type: System::Int64
The new position in the stream.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft