Table of Contents

Method DownloadResource

Namespace
DotNetBrowser.Browser
Assembly
DotNetBrowser.dll

DownloadResource(string)

Starts downloading the resource at the specified URL.

void DownloadResource(string url)

Parameters

url string

The URL of the resource to download.

Remarks

If the given URL is valid and points to a downloadable resource, then the download process will be started. To control the download process, use StartDownloadHandler.

The method does nothing if the given URL is not well-formed or points to a resource that cannot be downloaded.

Exceptions

ArgumentException

The url is null, empty, or consists only of white-space characters.

ObjectDisposedException

The IBrowser has already been disposed.

ConnectionClosedException

The connection to the Chromium engine is closed.