This documentation is archived and is not being maintained.

NetworkStream.Seek Method

Sets the current position of the stream to the given value. This method always throws a NotSupportedException.

[Visual Basic]
Overrides Public Function Seek( _
   ByVal offset As Long, _
   ByVal origin As SeekOrigin _
) As Long
public override long Seek(
 long offset,
 SeekOrigin origin
public: __int64 Seek(
 __int64 offset,
 SeekOrigin origin
public override function Seek(
   offset : long,
 origin : SeekOrigin
) : long;


This parameter is not used.
This parameter is not used.

Return Value

The position in the stream. This method is not currently supported, and will throw a NotSupportedException.


Exception Type Condition
NotSupportedException Any access.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

NetworkStream Class | NetworkStream Members | System.Net.Sockets Namespace