SocketAsyncEventArgs.Count 属性

定义

获取在异步操作中发送或接收的最大数据量(以字节为单位)。

public:
 property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer

属性值

一个 Int32 包含要发送或接收的最大数据量(以字节为单位)。

注解

通过调用 SetBuffer 方法设置此属性。

此属性用于 Socket.AcceptAsync、、Socket.ConnectAsyncSocket.ReceiveAsyncSocket.ReceiveFromAsyncSocket.ReceiveMessageFromAsyncSocket.SendAsyncSocket.SendToAsync方法。

适用于

另请参阅