GetResponseInformation method
Collapse the table of content
Expand the table of content

IBackgroundTransferOperation.GetResponseInformation method

Gets the response infomation.


ResponseInformation GetResponseInformation()


This method has no parameters.

Return value

Type: ResponseInformation

Contains the data returned by a server response.

This method returns an object that contains information about the current server response. When calling this method multiple times, the object returned will be the same as long as there is no new server response information available. Sometimes however, one download consists of multiple requests to a server. If a request gets aborted due to some non-fatal error (e.g. machine lost internet connectivity, cost policy required download to pause, application called Pause(), etc.), Download API will invoke a new request and try to resume/restart the download. The response information from the server for this second request may be different than the one returned by the first request.

Returns null if any of the following conditions is true.

  • The transfer associated with the background transfer operation is being made using a protocol other than HTTP (e.g., FTP).
  • The background transfer operation hasn't yet begun.
  • There was a failure before any response from the server was received (e.g., connection couldn't be established).

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0


Windows::Networking::BackgroundTransfer [C++]



Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Networking::BackgroundTransfer [C++]



See also




© 2016 Microsoft