次の方法で共有


CoreWebView2Frame.RemoveHostObjectFromScript(String) Method

Definition

Remove the host object specified by the name so that it is no longer accessible from JavaScript code in the iframe.

public void RemoveHostObjectFromScript (string name);
member this.RemoveHostObjectFromScript : string -> unit
Public Sub RemoveHostObjectFromScript (name As String)

Parameters

name
String

Remarks

While new access attempts are denied, if the object is already obtained by JavaScript code in the iframe, the JavaScript code continues to have access to that object. Calling this method for a name that is already removed or was never added fails. If the iframe is destroyed this method will return fail also.

Applies to