Member variable CoreWebView2Settings():UserAgent Foundation

Gets or sets the user agent string.

Attribute: VAR EXPORTED
Data type: Character (NIL)
Description

This member variable allows customization of the User-Agent HTTP header sent with all requests from the WebView2 control. The user agent string identifies the browser and system to web servers and can affect how websites render content. Setting a custom user agent can be useful for compatibility testing or to receive mobile-optimized content. The default is an empty string which uses the default WebView2 user agent.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.