Skip to content

System.Net.Sockets.NetworkStream.Read(Byte[], Int32, Int32) #10925

Closed
@algor1

Description

@algor1

Type of issue

Missing information

Description

Hi
Please add info in chapter Read(Byte[], Int32, Int32) of System.Net.Sockets.NetworkStream to Returns row:

Returns
The number of bytes read from the [NetworkStream] , or 0 if the socket is closed

I managed to find this info only in comments in the code but it is really important to know what it returns when socket is closed.

Thanks in advance.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.net.sockets.networkstream.read?view=net-9.0#system-net-sockets-networkstream-read(system-byte()-system-int32-system-int32)

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System.Net.Sockets/NetworkStream.xml

Document Version Independent Id

b40c2ef4-b8a0-8de3-e71d-baf1aaae541b

Article author

@karelz

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions