SocketAsyncEventArgs.Count SocketAsyncEventArgs.Count SocketAsyncEventArgs.Count SocketAsyncEventArgs.Count Property

定义

获取可在异步操作中发送或接收的最大数据量(以字节为单位)。Gets the maximum amount of data, in bytes, to send or receive in an asynchronous operation.

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

属性值

一个 Int32,包含可发送或接收的最大数据量(以字节为单位)。An Int32 that contains the maximum amount of data, in bytes, to send or receive.

注解

此属性通过调用SetBuffer方法来设置。This property is set by calling the SetBuffer method.

Socket.AcceptAsync此属性用于Socket.ConnectAsyncSocket.ReceiveMessageFromAsync 、、Socket.SendToAsync 、 、Socket.SendAsync和方法。 Socket.ReceiveAsync Socket.ReceiveFromAsyncThis property is used with the Socket.AcceptAsync, Socket.ConnectAsync, Socket.ReceiveAsync, Socket.ReceiveFromAsync, Socket.ReceiveMessageFromAsync, Socket.SendAsync, and Socket.SendToAsync methods.

适用于

另请参阅