This documentation is archived and is not being maintained.

NetworkStream.SetLength Method

Sets the length of the stream. This method always throws a NotSupportedException.

[Visual Basic]
Overrides Public Sub SetLength( _
   ByVal value As Long _
)
[C#]
public override void SetLength(
 long value
);
[C++]
public: void SetLength(
 __int64 value
);
[JScript]
public override function SetLength(
   value : long
);

Parameters

value
This parameter is not used.

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: