Status

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the current HTTP status of the Downloader object request.

value = downloaderObject.Status

Property Value

Type: integer

Gets the HTTP status code value that represents the current state of the Downloader object request.

This property is read-only. The default value is 0.

Managed Equivalent

None. Downloader does not exist in the managed API. Generally you can use WebClient for downloads, which provides equivalent functionality.

Remarks

The HTTP status code reflects the current state of the Downloader request, as specified by the verb parameter in the Open method. The corresponding text value is provided by the StatusText property. For example, if the value of the verb parameter is "GET" and the resulting download was successful, the value of Status is 200 and the value of StatusText is "OK".

The following table lists the HTTP and text status codes that the Downloader reports. For more information, see HTTP Status Codes in the MSDN Library.

Status code

Status text

Description

200

OK

The request completed successfully.

204

No content

The server has not found any content that matches the request Uniform Resource Identifier (URI).

Because a Downloader object downloads content asynchronously, the events that indicate completion or failure (Completed and DownloadFailed) are more relevant for most Downloader scenarios than is the value of the HTTP status code.

Applies To

Downloader