Export (0) Print
Expand All

ApplicationDeployment.DownloadFileGroupCompleted Event

Occurs on the main application thread when a file download is complete.

Namespace:  System.Deployment.Application
Assembly:  System.Deployment (in System.Deployment.dll)

member DownloadFileGroupCompleted : IEvent<DownloadFileGroupCompletedEventHandler,

The DownloadFileGroupCompleted event is called on the main application thread. It is thread safe to call your application's Windows Forms controls directly within this callback.

Check the Error property of the AsyncCompletedEventArgs supplied to this callback. If this property is a null reference (Nothing in Visual Basic), the download was successful; if it is not a null reference (Nothing in Visual Basic), the installation did not succeed, and you can find more information about the installation failure through the Error property.

The following code example downloads a group of Help files in the background. The example requires that you deploy a Windows Forms application that includes a StatusStrip control, and that this control contain a ToolStripStatusLabel control named downloadStatus..

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft