ResourceHandlerFromStream Method |
Version 83.4.2
Gets the resource from a stream.
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 83.4.2.0 (83.4.2.0)
Syntax public static ResourceHandler FromStream(
Stream stream,
string mimeType = "text/html",
bool autoDisposeStream = false,
string charSet = null
)
public:
static ResourceHandler^ FromStream(
Stream^ stream,
String^ mimeType = L"text/html",
bool autoDisposeStream = false,
String^ charSet = nullptr
)
Parameters
- stream
- Type: System.IOStream
A stream of the resource. - mimeType (Optional)
- Type: SystemString
Type of MIME. - autoDisposeStream (Optional)
- Type: SystemBoolean
Dispose of the stream when finished with (you will only be able to serve one
request). - charSet (Optional)
- Type: SystemString
response charset
Return Value
Type:
ResourceHandlerResourceHandler.
See Also