Partager via


CoreWebView2BrowserExtension.EnableAsync(Boolean) Method

Definition

Sets whether this browser extension is enabled or disabled. This change applies immediately to the extension in all HTML documents in all WebView2s associated with this profile. After an extension is removed, calling Enable will not change the value of IsEnabled.

public System.Threading.Tasks.Task EnableAsync (bool IsEnabled);
member this.EnableAsync : bool -> System.Threading.Tasks.Task
Public Function EnableAsync (IsEnabled As Boolean) As Task

Parameters

IsEnabled
Boolean

Returns

Applies to