mobileFX WebKitX CEF3 ActiveX 4.x
WebKitXCEF3Lib ActiveX Control / WebKitXCEF3 Object / CancelDownload Method

The ID of the downloaded resource as provided by OnBeforeDownload event.

In This Topic
    CancelDownload Method
    In This Topic
    Description

    Cancels downloading of a resource that started with Download method.

    Syntax
    Visual Basic
    Public Sub CancelDownload( _
       ByVal Id As Long _
    ) 
    Parameters
    Id

    The ID of the downloaded resource as provided by OnBeforeDownload event.

    Example
    Private Sub mnuCancelDownload_Click()
        On Error Resume Next
        WebKitX1.CancelDownload DownloadID
    End Sub
    private void menuItemCancelDownload_Click(object sender, EventArgs e)
    {
        WebKitXCEF31.CancelDownload(DonwloadID);
    }
    See Also