Method
HttpResponseStreamManager.GetStreamWriter
GetStreamWriter(string?, Encoding?, string?) #
Returns a StreamWriter for writing to the response stream, setting the content type and encoding.
public StreamWriter GetStreamWriter(string? contentType, Encoding? encoding, string? newLine = "\r\n")Parameters #
contentType string?
The content type of the response, or null to omit the content type header.
encoding Encoding?
The encoding to use for the response, or null to use the default encoding.
newLine string?
The new line string literal for the writer.
Returns #
A StreamWriter for writing to the response stream.