Click or drag to resize
WebBrowserExtensionsLoadString Method
Version 51.0.0
Load the string contents with the specified dummy url. Web security restrictions may not behave as expected.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: (
public static void LoadString(
	this IWebBrowser browser,
	string html,
	string url


Type: CefSharpIWebBrowser
The ChromiumWebBrowser instance this method extends
Type: SystemString
html string to load
Type: SystemString
the url should have a standard scheme (for example, http scheme) or behaviors like link clicks

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IWebBrowser. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also