Compartir a través de


DeploymentCatalog.CancelAsync Method

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

Cancels the XAP file download in progress.

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

Syntax

'Declaration
Public Sub CancelAsync
public void CancelAsync()

Exceptions

Exception Condition
InvalidOperationException

The method is called before DownloadAsync or after the DownloadCompleted event has occurred.

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.