Share via


IWebViewControl2 Schnittstelle

Definition

Stellt ein Steuerelement bereit, das HTML-Inhalte in einer App hostet. Diese Schnittstelle erfordert 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
Abgeleitet
Attribute

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1809 (eingeführt in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v7.0)

Hinweise

Die WebViewControl -Klasse ermöglicht Win32-Apps das Anzeigen von Webinhalten mithilfe derselben zugrunde liegenden Infrastruktur wie die UWP-WebView.

Methoden

AddInitializeScript(String)

Fügt ein Skript direkt nach ContentLoading, aber bevor ein anderes Skript auf der Seite ausgeführt wird, in IWebViewControl ein.

Gilt für: