Intersoft ClientUI Documentation
Download(Boolean,Action<ApplicationDownloadingEventArgs>,Action,Action<ApplicationDownloadCancelledEventArgs>,Action<ApplicationDownloadFailedEventArgs>) Method
See Also  Send Feedback
Intersoft.Client.Framework Namespace > ApplicationPackage Class > Download Method : Download(Boolean,Action<ApplicationDownloadingEventArgs>,Action,Action<ApplicationDownloadCancelledEventArgs>,Action<ApplicationDownloadFailedEventArgs>) Method






autoLoadOnCompleted
Determines whether the referenced assemblies should be automatically loaded when the download is completed.
onDownloading
Provides the delegate method that handles the downloading callback.
onDownloadSuccess
Provides the delegate method that handles the download success callback.
onDownloadCancelled
Provides the delegate method that handles the download cancellation callback.
onDownloadFailed
Provides the delegate method that handles the download failed callback.
Download the application package from the specified source and provide the methods to handle the download events.

Syntax

Visual Basic (Declaration) 
Public Overloads Function Download( _
   ByVal autoLoadOnCompleted As Boolean, _
   ByVal onDownloading As Action(Of ApplicationDownloadingEventArgs), _
   ByVal onDownloadSuccess As Action, _
   ByVal onDownloadCancelled As Action(Of ApplicationDownloadCancelledEventArgs), _
   ByVal onDownloadFailed As Action(Of ApplicationDownloadFailedEventArgs) _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ApplicationPackage
Dim autoLoadOnCompleted As Boolean
Dim onDownloading As Action(Of ApplicationDownloadingEventArgs)
Dim onDownloadSuccess As Action
Dim onDownloadCancelled As Action(Of ApplicationDownloadCancelledEventArgs)
Dim onDownloadFailed As Action(Of ApplicationDownloadFailedEventArgs)
Dim value As Boolean
 
value = instance.Download(autoLoadOnCompleted, onDownloading, onDownloadSuccess, onDownloadCancelled, onDownloadFailed)
C# 
public bool Download( 
   bool autoLoadOnCompleted,
   Action<ApplicationDownloadingEventArgs> onDownloading,
   Action onDownloadSuccess,
   Action<ApplicationDownloadCancelledEventArgs> onDownloadCancelled,
   Action<ApplicationDownloadFailedEventArgs> onDownloadFailed
)
Delphi 
public function Download( 
    autoLoadOnCompleted: Boolean;
    onDownloading: Action;
    onDownloadSuccess: Action;
    onDownloadCancelled: Action;
    onDownloadFailed: Action
): Boolean; 
JScript 
public function Download( 
   autoLoadOnCompleted : boolean,
   onDownloading : Action,
   onDownloadSuccess : Action,
   onDownloadCancelled : Action,
   onDownloadFailed : Action
) : boolean;
Managed Extensions for C++ 
public: bool Download( 
   bool autoLoadOnCompleted,
   Action<ApplicationDownloadingEventArgs*>* onDownloading,
   Action* onDownloadSuccess,
   Action<ApplicationDownloadCancelledEventArgs*>* onDownloadCancelled,
   Action<ApplicationDownloadFailedEventArgs*>* onDownloadFailed
) 
C++/CLI 
public:
bool Download( 
   bool autoLoadOnCompleted,
   Action<ApplicationDownloadingEventArgs^>^ onDownloading,
   Action^ onDownloadSuccess,
   Action<ApplicationDownloadCancelledEventArgs^>^ onDownloadCancelled,
   Action<ApplicationDownloadFailedEventArgs^>^ onDownloadFailed
) 

Parameters

autoLoadOnCompleted
Determines whether the referenced assemblies should be automatically loaded when the download is completed.
onDownloading
Provides the delegate method that handles the downloading callback.
onDownloadSuccess
Provides the delegate method that handles the download success callback.
onDownloadCancelled
Provides the delegate method that handles the download cancellation callback.
onDownloadFailed
Provides the delegate method that handles the download failed callback.

Return Value

Returns true if the download process is started.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.