DownloadingStart

Using WebView2

Description

Occurs before a download begins.

Syntax

DownloadingStart (integer itemId, string filename, string uri, string mimeType, string contentDisposition, longlong total)

Event ID

Event ID

Objects

None

WebBrowser controls


Arguments

Argument

Description

itemId

The ID of the download item, which starts from 1.

fileName

The full path name of the file to be downloaded and saved locally.

uri

The URI of the download item.

mimeType

The MIME type of the download item.

contentDisposition

The value of the HTTP response header Content-Disposition of the download request.

total

The size of the file to be downloaded.


Return Values

None

See also

AddressChange

CertificateError

DownloadingStateChanged

EvaluateJavascriptFinished

NavigationError

NavigationProgressIndex

NavigationStateChanged

NavigationStart

PdfPrintFinished

ResourceRedirect

TitleTextChanged

Using CEF

Description

Occurs before a download begins.

Event ID

Event ID

Objects

None

WebBrowser controls


Arguments

Argument

Description

itemId

The ID used to specify the file.

fileName

The full path name of the file to be downloaded and saved locally.


Return Values

None

See also

AddressChanged

CertificateError

DownloadingStateChanged

EvaluateJavascriptFinished

NavigationError

NavigationProgressIndex

NavigationStateChanged

NavigationStart

PdfPrintFinished

ResourceRedirect

TitleTextChanged