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
[C#]
public override long Seek(
 long offset,
 SeekOrigin origin
);
[C++]
public: __int64 Seek(
 __int64 offset,
 SeekOrigin origin
);
[JScript]
public override function Seek(
   offset : long,
 origin : SeekOrigin
) : long;

Parameters

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

Return Value

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

Exceptions

Exception Type Condition
NotSupportedException Any access.

Requirements

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

Show: