CoreWebView2.GetComICoreWebView2 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.

Returns the existing COM ICoreWebView2 object underlying this .NET CoreWebView2 object. This allows interacting with the WebView2 control using COM APIs, even if the control was originally created using .NET.

C#
public IntPtr GetComICoreWebView2 ();

Returns

IntPtr

Pointer to a COM object that implements the ICoreWebView2 COM interface.

Applies to

Product Versions
WebView2 .NET 1.0.2651.64, 1.0.2739.15, 1.0.2792.45, 1.0.2849.39, 1.0.2903.40, 1.0.2957.106, 1.0.3065.39
WebView2 .NET Prerelease 1.0.2646, 1.0.2730, 1.0.2783, 1.0.2839, 1.0.2895, 1.0.2950, 1.0.3079, 1.0.3116