Delen via


UploadOperation.GetResponseInformation Method

Definition

Gets the response information.

public:
 virtual ResponseInformation ^ GetResponseInformation() = GetResponseInformation;
ResponseInformation GetResponseInformation();
public ResponseInformation GetResponseInformation();
function getResponseInformation()
Public Function GetResponseInformation () As ResponseInformation

Returns

Contains the data returned by a server response.

Implements

Remarks

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 upload consists of multiple requests to a server. If a request gets aborted due to some non-fatal error (for example, machine lost internet connectivity, cost policy required upload to pause, application called Pause(), etc.), Background Transfer will invoke a new request and try to restart the upload. 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 UploadOperation is being made using a protocol other than HTTP (for example, FTP).
  • The UploadOperation hasn't yet begun.
  • There was a failure before any response from the server was received (for example, connection couldn't be established).

Applies to