System.Net.Sockets.NetworkStream.Seek Method

Sets the current position of the stream to the given value. This method is not currently supported and always throws a NotSupportedException.

Syntax

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

Parameters

offset
This parameter is not used.
origin
This parameter is not used.

Returns

The position in the stream.

Exceptions

TypeReason
NotSupportedExceptionAny call to this method.

Remarks

Note:

The System.IO.Stream base class uses this method to set the current position in the stream. This functionality is not supported in the System.Net.Sockets.NetworkStream class.

This method overrides System.IO.Stream.Seek(long, System.IO.SeekOrigin).

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0