Прочетете на английски

Споделяне чрез


CoreWebView2Environment.CreateCoreWebView2ControllerWithOptionsAsync Method

Definition

Create a new webview with CoreWebView2ControllerOptions as parameter for multiple profiles support.

C#
public System.Threading.Tasks.Task<Microsoft.Web.WebView2.Core.CoreWebView2Controller> CreateCoreWebView2ControllerWithOptionsAsync (IntPtr ParentWindow, Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions options);

Parameters

ParentWindow
IntPtr

The parent window of the WebView.

Returns

A completed handler that would be called when a new webview created.

Remarks

If a new webview has been created, the Task<TResult> will be immediately invoked.

Applies to

Продукт Версии
WebView2 .NET Prerelease 1.0.1018, 1.0.1056, 1.0.1083, 1.0.1133, 1.0.1158, 1.0.1189