Click or drag to resize

ResourceHandler.GetMemoryStream Method

Version 100.0.140
Gets a MemoryStream from the given string using the provided encoding

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 100.0.140.0 (100.0.140.0)
Syntax
public static MemoryStream GetMemoryStream(
	string text,
	Encoding encoding,
	bool includePreamble = true
)

Parameters

text
Type: System.String
string to be converted to a stream
encoding
Type: System.Text.Encoding
encoding
includePreamble (Optional)
Type: System.Boolean
if true a BOM will be written to the beginning of the stream

Return Value

Type: MemoryStream
A memory stream from the given string
See Also