Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PipeStream::Seek Method (Int64, SeekOrigin)

 

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

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

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

Parameters

offset
Type: System::Int64

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

origin
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
Available since 3.5
Return to top
Show:
© 2017 Microsoft