ResourceHandlerFromString Method (String, Encoding, Boolean, String) |
Version 51.0.0
Gets a
ResourceHandler that represents a string.
Without a Preamble, Cef will use BrowserSettings.DefaultEncoding to load the html.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax public static ResourceHandler FromString(
string text,
Encoding encoding = null,
bool includePreamble = true,
string mimeType = "text/html"
)
public:
static ResourceHandler^ FromString(
String^ text,
Encoding^ encoding = nullptr,
bool includePreamble = true,
String^ mimeType = L"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:
ResourceHandlerResourceHandler
See Also