DownloadStarting is raised when a download has begun, blocking the default download dialog, but not blocking the progress of the download.
Syntax
Private Sub object_DownloadStarting(URI As String, MimeType As String, LocalSuggestedPath As String, LocalSuggestedFile As String, CancelBrowserDialog As Boolean, CancelDownloadOp As Boolean, NewLocalFilePath As String)
The DownloadStarting event syntax has these parts:
| Element | Description |
| Object | The object placeholder represents an OrdoWebView2 control |
| URI | String. URL of file to download |
| MimeType | String. Mime Type of file to download |
| LocalSuggestedPath | String. the path suggested by the control to save the file |
| LocalSuggestedFile | String. The name of the file to download with its extension |
| CancelBrowserDialog | Boolean. if set to TRUE, prevents the display of the browser's download dialog box |
| CancelDownloadOp | Boolean. if set to TRUE, aborts the download |
| NewLocalFilePath | String. The new path with the name of the file to download, if the user does not want suggested items, else "" |