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.ConnectAsyncSocket.ReceiveAsync、、Socket.ReceiveMessageFromAsyncSocket.ReceiveFromAsyncSocket.SendAsync、 和 Socket.SendToAsync 方法搭配Socket.AcceptAsync使用。

適用於

另請參閱