ResourceHandlerGetMemoryStream Method |
Version 111.2.70
Gets a MemoryStream from the given string using the provided encoding
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 111.2.70.0 (111.2.70.0)
Syntax public static MemoryStream GetMemoryStream(
string text,
Encoding encoding,
bool includePreamble = true
)
public:
static MemoryStream^ GetMemoryStream(
String^ text,
Encoding^ encoding,
bool includePreamble = true
)
Parameters
- text
- Type: SystemString
string to be converted to a stream - encoding
- Type: System.TextEncoding
encoding - includePreamble (Optional)
- Type: SystemBoolean
if true a BOM will be written to the beginning of the stream
Return Value
Type:
MemoryStreamA memory stream from the given string
See Also