CoreWebView2Environment.CreateCoreWebView2ControllerWithOptionsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a new webview with CoreWebView2ControllerOptions as parameter for multiple profiles support.
public System.Threading.Tasks.Task<Microsoft.Web.WebView2.Core.CoreWebView2Controller> CreateCoreWebView2ControllerWithOptionsAsync (IntPtr ParentWindow, Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions options);
member this.CreateCoreWebView2ControllerWithOptionsAsync : nativeint * Microsoft.Web.WebView2.Core.CoreWebView2ControllerOptions -> System.Threading.Tasks.Task<Microsoft.Web.WebView2.Core.CoreWebView2Controller>
Public Function CreateCoreWebView2ControllerWithOptionsAsync (ParentWindow As IntPtr, options As CoreWebView2ControllerOptions) As Task(Of CoreWebView2Controller)
Parameters
- ParentWindow
-
IntPtr
nativeint
The parent window of the WebView.
- options
- CoreWebView2ControllerOptions
The options created by CreateCoreWebView2ControllerOptions(String, Int32).
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.