ResourceHandlerFromString(String, Encoding, Boolean, String) Method |
Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax public static IResourceHandler FromString(
string text,
Encoding encoding = null,
bool includePreamble = true,
string mimeType = "text/html"
)
public:
static IResourceHandler^ FromString(
String^ text,
Encoding^ encoding = nullptr,
bool includePreamble = true,
String^ mimeType = L"text/html"
)
Parameters
- text String
- The html string
- encoding Encoding (Optional)
- Character Encoding
- includePreamble Boolean (Optional)
- Include encoding preamble
- mimeType String (Optional)
- Mime Type
Return Value
IResourceHandlerResourceHandler
See Also