System.Net.Sockets.SocketAsyncEventArgs.BytesTransferred Property

Gets the number of bytes transferred in the socket operation.

Syntax

public int BytesTransferred { get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property provides the number of bytes transferred in an asynchronous socket operation that can receive or send data. If zero is returned from a read operation, the remote end has closed the connection.

This property is set by all asynchronous socket operations except the Socket.DisconnectAsync(SocketAsyncEventArgs) method.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0