The OpenD Programming Language

ICoreWebView2Settings2.put_UserAgent

Sets the UserAgent property. This property may be overridden if the User-Agent header is set in a request. If the parameter is empty the User Agent will not be updated and the current User Agent will remain. Returns HRESULT_FROM_WIN32(ERROR_INVALID_STATE) if the owning WebView is closed.

interface ICoreWebView2Settings2
@" propput"
HRESULT
put_UserAgent
(
in LPCWSTR userAgent
)

Meta