DeploymentCatalog.DownloadAsync Method

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

Begins downloading the XAP file associated with the DeploymentCatalog.

Namespace:  System.ComponentModel.Composition.Hosting
Assembly:  System.ComponentModel.Composition.Initialization (in System.ComponentModel.Composition.Initialization.dll)

Syntax

'Declaration
Public Sub DownloadAsync
public void DownloadAsync()

Exceptions

Exception Condition
InvalidOperationException

This method is called more than once, or after the CancelAsync method.

Remarks

The DownloadCompleted event will be raised when the download has finished or when an error occurs. The DownloadProgressChanged event can be used to track the progress of the download.

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.