SocketAsyncEventArgs.BytesTransferred 屬性

定義

取得通訊端作業中所傳輸的位元組數目。

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

屬性值

Int32,內含通訊端作業中所傳輸的位元組數目。

備註

這個屬性提供異步套接字作業中傳送的位元組數目,可接收或傳送數據。 如果讀取作業傳回零,則遠端端已關閉連線。

這個屬性是由方法以外的 Socket.DisconnectAsync 所有異步套接字作業所設定。

適用於

另請參閱