HttpWriter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a TextWriter object that is accessed through the intrinsic HttpResponse object.
public ref class HttpWriter sealed : System::IO::TextWriter
public sealed class HttpWriter : System.IO.TextWriter
type HttpWriter = class
inherit TextWriter
Public NotInheritable Class HttpWriter
Inherits TextWriter
- Inheritance
Remarks
The Write methods of the intrinsic HttpResponse object make internal calls to an HttpWriter object.
Fields
CoreNewLine |
Stores the newline characters used for this |
Properties
Encoding |
Gets an Encoding object for the TextWriter. |
FormatProvider |
Gets an object that controls formatting. (Inherited from TextWriter) |
NewLine |
Gets or sets the line terminator string used by the current |
OutputStream |
Gets a Stream object to enable HTTP output directly from the Stream. |
Methods
Close() |
Sends all buffered output to the HTTP output stream and closes the socket connection. |
CreateObjRef(Type) |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject) |
Dispose() |
Releases all resources used by the TextWriter object. (Inherited from TextWriter) |
Dispose(Boolean) |
Releases the unmanaged resources used by the TextWriter and optionally releases the managed resources. (Inherited from TextWriter) |
DisposeAsync() |
Asynchronously releases all resources used by the TextWriter object. (Inherited from TextWriter) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Flush() |
Sends all buffered output to the HTTP output stream. |
FlushAsync() |
Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device. (Inherited from TextWriter) |
FlushAsync(CancellationToken) |
Asynchronously clears all buffers for the current writer and causes any buffered data to be written to the underlying device. (Inherited from TextWriter) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetLifetimeService() |
Obsolete.
Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
InitializeLifetimeService() |
Obsolete.
Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Write(Boolean) |
Writes the text representation of a |
Write(Char) |
Sends a single character to the HTTP output stream. |
Write(Char[]) |
Writes a character array to the text stream. (Inherited from TextWriter) |
Write(Char[], Int32, Int32) |
Sends a stream of characters with the specified starting position and number of characters to the HTTP output stream. |
Write(Decimal) |
Writes the text representation of a decimal value to the text stream. (Inherited from TextWriter) |
Write(Double) |
Writes the text representation of an 8-byte floating-point value to the text stream. (Inherited from TextWriter) |
Write(Int32) |
Writes the text representation of a 4-byte signed integer to the text stream. (Inherited from TextWriter) |
Write(Int64) |
Writes the text representation of an 8-byte signed integer to the text stream. (Inherited from TextWriter) |
Write(Object) |
Sends an Object to the HTTP output stream. |
Write(ReadOnlySpan<Char>) |
Writes a character span to the text stream. (Inherited from TextWriter) |
Write(Single) |
Writes the text representation of a 4-byte floating-point value to the text stream. (Inherited from TextWriter) |
Write(String) |
Sends a string to the HTTP output stream. |
Write(String, Object) |
Writes a formatted string to the text stream, using the same semantics as the Format(String, Object) method. (Inherited from TextWriter) |
Write(String, Object, Object) |
Writes a formatted string to the text stream using the same semantics as the Format(String, Object, Object) method. (Inherited from TextWriter) |
Write(String, Object, Object, Object) |
Writes a formatted string to the text stream, using the same semantics as the Format(String, Object, Object, Object) method. (Inherited from TextWriter) |
Write(String, Object[]) |
Writes a formatted string to the text stream, using the same semantics as the Format(String, Object[]) method. (Inherited from TextWriter) |
Write(String, ReadOnlySpan<Object>) |
Writes a formatted string to the text stream, using the same semantics as Format(String, ReadOnlySpan<Object>). (Inherited from TextWriter) |
Write(StringBuilder) |
Writes a string builder to the text stream. (Inherited from TextWriter) |
Write(UInt32) |
Writes the text representation of a 4-byte unsigned integer to the text stream. (Inherited from TextWriter) |
Write(UInt64) |
Writes the text representation of an 8-byte unsigned integer to the text stream. (Inherited from TextWriter) |
WriteAsync(Char) |
Writes a character to the text stream asynchronously. (Inherited from TextWriter) |
WriteAsync(Char[]) |
Writes a character array to the text stream asynchronously. (Inherited from TextWriter) |
WriteAsync(Char[], Int32, Int32) |
Writes a subarray of characters to the text stream asynchronously. (Inherited from TextWriter) |
WriteAsync(ReadOnlyMemory<Char>, CancellationToken) |
Asynchronously writes a character memory region to the text stream. (Inherited from TextWriter) |
WriteAsync(String) |
Writes a string to the text stream asynchronously. (Inherited from TextWriter) |
WriteAsync(StringBuilder, CancellationToken) |
Asynchronously writes a string builder to the text stream. (Inherited from TextWriter) |
WriteBytes(Byte[], Int32, Int32) |
Sends a stream of bytes with the specified starting position and number of bytes to the HTTP output stream. |
WriteLine() |
Sends a carriage return + line feed (CRLF) pair of characters to the HTTP output stream. |
WriteLine(Boolean) |
Writes the text representation of a |
WriteLine(Char) |
Writes a character to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Char[]) |
Writes an array of characters to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Char[], Int32, Int32) |
Writes a subarray of characters to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Decimal) |
Writes the text representation of a decimal value to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Double) |
Writes the text representation of a 8-byte floating-point value to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Int32) |
Writes the text representation of a 4-byte signed integer to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Int64) |
Writes the text representation of an 8-byte signed integer to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Object) |
Writes the text representation of an object to the text stream, by calling the |
WriteLine(ReadOnlySpan<Char>) |
Writes the text representation of a character span to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(Single) |
Writes the text representation of a 4-byte floating-point value to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(String) |
Writes a string to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(String, Object) |
Writes a formatted string and a new line to the text stream, using the same semantics as the Format(String, Object) method. (Inherited from TextWriter) |
WriteLine(String, Object, Object) |
Writes a formatted string and a new line to the text stream, using the same semantics as the Format(String, Object, Object) method. (Inherited from TextWriter) |
WriteLine(String, Object, Object, Object) |
Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object). (Inherited from TextWriter) |
WriteLine(String, Object[]) |
Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, Object). (Inherited from TextWriter) |
WriteLine(String, ReadOnlySpan<Object>) |
Writes out a formatted string and a new line to the text stream, using the same semantics as Format(String, ReadOnlySpan<Object>). (Inherited from TextWriter) |
WriteLine(StringBuilder) |
Writes the text representation of a string builder to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(UInt32) |
Writes the text representation of a 4-byte unsigned integer to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLine(UInt64) |
Writes the text representation of an 8-byte unsigned integer to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLineAsync() |
Asynchronously writes a line terminator to the text stream. (Inherited from TextWriter) |
WriteLineAsync(Char) |
Asynchronously writes a character to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLineAsync(Char[]) |
Asynchronously writes an array of characters to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLineAsync(Char[], Int32, Int32) |
Asynchronously writes a subarray of characters to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken) |
Asynchronously writes the text representation of a character memory region to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLineAsync(String) |
Asynchronously writes a string to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteLineAsync(StringBuilder, CancellationToken) |
Asynchronously writes the text representation of a string builder to the text stream, followed by a line terminator. (Inherited from TextWriter) |
WriteString(String, Int32, Int32) |
Sends a string with the specified starting position and number of characters to the HTTP output stream. |
Explicit Interface Implementations
IDisposable.Dispose() |
For a description of this member, see Dispose(). (Inherited from TextWriter) |
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om