A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cefsharp.github.io/api/118.6.x/html/M_CefSharp_WebBrowserExtensions_LoadHtml_3.htm below:

WebBrowserExtensionsLoadHtml Method (IWebBrowser, String, String, Encoding, Boolean)

WebBrowserExtensionsLoadHtml Method (IWebBrowser, String, String, Encoding, Boolean) Version 118.6.80 Namespace:  CefSharp
Assembly:

CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)

Syntax
public static bool LoadHtml(
	this IWebBrowser browser,
	string html,
	string url,
	Encoding encoding,
	bool oneTimeUse = false
)
public:
[ExtensionAttribute]
static bool LoadHtml(
	IWebBrowser^ browser, 
	String^ html, 
	String^ url, 
	Encoding^ encoding, 
	bool oneTimeUse = false
)
Parameters
browser
Type: CefSharpIWebBrowser
The ChromiumWebBrowser instance this method extends.
html
Type: SystemString
The HTML content.
url
Type: SystemString
The URL that will be treated as the address of the content.
encoding
Type: System.TextEncoding
Character Encoding.
oneTimeUse (Optional)
Type: SystemBoolean
(Optional) Whether or not the handler should be used once (true) or until manually unregistered (false)
Return Value

Type:

Boolean

returns false if the Url was not successfully parsed into a Uri.

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)

.

Exceptions Exception Condition Exception Thrown when an exception error condition occurs. Remarks

`Cef` Native `LoadHtml` is unpredictable and only works sometimes, this method wraps the provided HTML in a

ResourceHandler

and loads the provided url using the

Load(String)

method.

See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4