InstallManager.DownloadInstallerFile(InstallerContext, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Downloads the installer file using the current installer context.
public:
bool DownloadInstallerFile(Microsoft::Web::PlatformInstaller::InstallerContext ^ currentInstall, [Runtime::InteropServices::Out] System::String ^ % failureReason);
public bool DownloadInstallerFile (Microsoft.Web.PlatformInstaller.InstallerContext currentInstall, out string failureReason);
member this.DownloadInstallerFile : Microsoft.Web.PlatformInstaller.InstallerContext * -> bool
Public Function DownloadInstallerFile (currentInstall As InstallerContext, ByRef failureReason As String) As Boolean
Parameters
- currentInstall
- InstallerContext
An InstallerContext instance that contains information about the installation file to download and associated context.
- failureReason
- String
Upon failure, this value contains a description of the reason for the download failure.
Returns
true
if the download completed successfully, otherwise false
. Additionally, if this method returns false, the failureReason
parameter contains a description of the reason for the failure.
Exceptions
currentInstall
is null
(Nothing
in Visual Basic)
currentInstall
.Installer or currentInstall
.Installer.InstallerFile is null
(Nothing
in Visual Basic)
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for