Share via


SetLength Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

Namespace:  System.Net.Sockets
Assembly:  System (in System.dll)

Syntax

'Declaration
Public Overrides Sub SetLength ( _
    value As Long _
)
public override void SetLength(
    long value
)
public:
virtual void SetLength(
    long long value
) override
abstract SetLength : 
        value:int64 -> unit 
override SetLength : 
        value:int64 -> unit 
public override function SetLength(
    value : long
)

Parameters

.NET Framework Security

See Also

Reference

NetworkStream Class

System.Net.Sockets Namespace