Export (0) Print
Expand All

WebSocketReceiveResult.Count Property

.NET Framework 4.5

Indicates the number of bytes that the WebSocket received.

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

public int Count { get; private set; }

Property Value

Type: System.Int32
Returns Int32.

Count can be 0 in two cases:

  1. The WebSocket received an empty message. In this case the CloseStatus property is None.

  2. The WebSocket received a close message was received from the remote endpoint. In this case the CloseStatus property is set to a value other than None.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft