WebView2.NavigateToString(String) 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.
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.