Delen via


IWebViewControl2 Interface

Definition

Provides a control that hosts HTML content in an app. This interface requires IWebViewControl.

public interface class IWebViewControl2
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.Guid(1295779577, 51423, 16844, 139, 213, 42, 148, 123, 32, 69, 3)]
struct IWebViewControl2
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.Guid(1295779577, 51423, 16844, 139, 213, 42, 148, 123, 32, 69, 3)]
public interface IWebViewControl2
Public Interface IWebViewControl2
Derived
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

The WebViewControl class allows Win32 apps to display web content using the same underlying infrastructure as the UWP WebView.

Methods

AddInitializeScript(String)

Injects a script into the IWebViewControl just after ContentLoading but before any other script is run on the page.

Applies to