Skip to content

DownloadBehavior

Namespace: PuppeteerSharp

public class DownloadBehavior

Behavior definition for when downloading a file.

Inheritance: object

View source

public string DownloadPath { get; set; }

The default path to save downloaded files to.

Value: string

Setting this is required if Policy is set to Allow or AllowAndName.

View source

public DownloadPolicy Policy { get; set; }

Whether to allow all or deny all download requests, or use default behavior if available.

Value: DownloadPolicy

Setting this to AllowAndName will name all files according to their download GUIDs.

View source

Made with love by Dario Kondratiuk