Share via


WebView2.NavigateToString(String) Method

Definition

Initiates a navigation to a new HTML document.

public:
 virtual void NavigateToString(Platform::String ^ htmlContent) = NavigateToString;
void NavigateToString(winrt::hstring const& htmlContent);
public void NavigateToString(string htmlContent);
function navigateToString(htmlContent)
Public Sub NavigateToString (htmlContent As String)

Parameters

htmlContent
String

Platform::String

winrt::hstring

HTML source of the new document.

Remarks

htmlContent cannot be larger than 2 MB (2 * 1024 * 1024 bytes) in total size. The origin of the new page is about:blank.

Applies to