Click or drag to resize

ResourceHandlerFromString Method (String, Encoding, Boolean, String)

Version 101.0.180
Gets a ResourceHandler that represents a string. Without a Preamble, Cef will use BrowserSettings.DefaultEncoding to load the html.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
public static IResourceHandler FromString(
	string text,
	Encoding encoding = null,
	bool includePreamble = true,
	string mimeType = "text/html"
)

Parameters

text
Type: SystemString
The html string
encoding (Optional)
Type: System.TextEncoding
Character Encoding
includePreamble (Optional)
Type: SystemBoolean
Include encoding preamble
mimeType (Optional)
Type: SystemString
Mime Type

Return Value

Type: IResourceHandler
ResourceHandler
See Also