語言

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

適用於

另請參閱