ICoreWebView2.RemoveHostObjectFromScript

Remove the host object specified by the name so that it is no longer accessible from JavaScript code in the WebView. While new access attempts are denied, if the object is already obtained by JavaScript code in the WebView, the JavaScript code continues to have access to that object. Run this method for a name that is already removed or never added fails.

interface ICoreWebView2
HRESULT
RemoveHostObjectFromScript
(
in LPCWSTR name
)

Meta