DOMView2DOMView

AddEvents

Add window event listeners that will raise an event in DOMEvent

Names String event names separated with spaces

DeleteCookies

Delete cookies by matching part of the domain

Value String value that is contained in the cookie domaion

FetchBase64

Use Fetch API to return byte data as base64 encoded string

Url String Url to call
Method String Method, default is GET. Valid values are GET, PUT, POST DELETE
Headers String() Array of HTTP Headers. Default Fetch headers are sent unless over-ridden by this array
Post String Post data is POST method is used
TimeOut Int32 Timeout im milliseconds. Default is 5000
String response date encoded as Base64

FetchBytes

Use Fetch API to return byte data

Url String Url to call
Method String Method, default is GET. Valid values are GET, PUT, POST DELETE
Headers String() Array of HTTP Headers. Default Fetch headers are sent unless over-ridden by this array
Post String Post data is POST method is used
TimeOut Int32 Timeout im milliseconds. Default is 5000
Byte raw byte response data

FetchDataUrl

Use Fetch API to return byte data encoded as a Data URL

Url String Url to call
Method String Method, default is GET. Valid values are GET, PUT, POST DELETE
Headers String() Array of HTTP Headers. Default Fetch headers are sent unless over-ridden by this array
Post String Post data is POST method is used
TimeOut Int32 Timeout im milliseconds. Default is 5000
String Data URL encoded response

FetchFile

Use Fetch API to save URL to file

Url String Url to call
File String File location to save the data
Method String Method, default is GET. Valid values are GET, PUT, POST DELETE
Headers String() Array of HTTP Headers. Default Fetch headers are sent unless over-ridden by this array
Post String Post data is POST method is used
TimeOut Int32 Timeout im milliseconds. Default is 5000
Byte raw byte response data

FetchText

Use Fetch API to return response data as string

Url String Url to call
Method String Method, default is GET. Valid values are GET, PUT, POST DELETE
Headers String() Array of HTTP Headers. Default Fetch headers are sent unless over-ridden by this array
Post String Post data is POST method is used
TimeOut Int32 Timeout im milliseconds. Default is 5000
String response data as string

LoadHTML

Sync load HTML source

HTML String HTML source code

Navigate

Async navigate to a Url

Url String Url to navigate to

Navigate

Sync Navigate to a Url

Url String Url to navigate to
TimeOut Int32 Timeout to wait in milliseconds

NavigateToString

Async Navigate to HTML source

HTML String HTML source to load

NavigateToString

Sync Navigate to HTML source

HTML String HTML source to load
TimeOut Int32 Timeout to wait in milliseconds

Print

Calls CoreWebView2.PrintAsync and waits for it to finish

Settings PrintSettings Settings to use for the PDF output
TimeOut Int32 Milliseconds to wait for the function to return. Use -1 for no timeout
PrintStatus Enumeration with result of print

Print

Calls CoreWebView2.PrintAsync and waits for it to finish

PrinterName String Name of the printer to use
TimeOut Int32 Milliseconds to wait for the function to return. Use -1 for no timeout
PrintStatus Enumeration with result of print

PrintToPDF

Calls CoreWebView2.PrintToPDF and waits for it to finish

ResultFilePath String Path to the saved PDF output
Settings PrintSettings Settings to use for the PDF output
TimeOut Int32 Milliseconds to wait for the function to return. Use -1 for no timeout
Boolean True if the PDF print succeeded

RemoveEvents

Remove window event listeners

Names String event names separated with spaces

UserAgent

Override the default UserAgent

Override UserAgent or use UserAgent after CoreWebView2 is initialised