BackgroundTransferRequest.TotalBytesToReceive Property

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

Gets the total number of bytes that will be downloaded for the request.

Namespace:  Microsoft.Phone.BackgroundTransfer
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public ReadOnly Property TotalBytesToReceive As Long
public long TotalBytesToReceive { get; }

Property Value

Type: System..::.Int64
The total number of bytes that will be downloaded for the request.

Remarks

This value is based on the initial response from the server from which the file is being downloaded. If the server does not return content length for a transfer, the value of this property is -1.

If the associated transfer request is an upload using the POST method, this value will indicate the total number of bytes returned in the response from the target server if the server returns a response.

This value represents the number of bytes of the transferred payload and does not include the size of the HTTP headers.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

BackgroundTransferRequest Class

Microsoft.Phone.BackgroundTransfer Namespace