ICoreWebView2Settings2.get_UserAgent

Returns the User Agent. The default value is the default User Agent of the Microsoft Edge browser.

The caller must free the returned string with CoTaskMemFree. See API Conventions.

\snippet SettingsComponent.cpp UserAgent

interface ICoreWebView2Settings2
@" propget"
HRESULT
get_UserAgent
(
LPWSTR* userAgent
)

Meta