BytesTransferred Property

SocketAsyncEventArgs.BytesTransferred Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the number of bytes transferred in the socket operation.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public int BytesTransferred { get; internal set; }

Property Value

Type: System.Int32
The number of bytes transferred in the socket operation.

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 the following asynchronous socket operation methods: Socket.ReceiveAsync, and Socket.SendAsync.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft