HttpWriter.Write Method
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.
Sends HTTP output to the client.
Overloads
Write(Char) |
Sends a single character to the HTTP output stream. |
Write(Object) |
Sends an Object to the HTTP output stream. |
Write(String) |
Sends a string to the HTTP output stream. |
Write(Char[], Int32, Int32) |
Sends a stream of characters with the specified starting position and number of characters to the HTTP output stream. |
Write(Char)
Write(Object)
Write(String)
Write(Char[], Int32, Int32)
Sends a stream of characters with the specified starting position and number of characters to the HTTP output stream.
public:
override void Write(cli::array <char> ^ buffer, int index, int count);
public override void Write (char[] buffer, int index, int count);
override this.Write : char[] * int * int -> unit
Public Overrides Sub Write (buffer As Char(), index As Integer, count As Integer)
Parameters
- buffer
- Char[]
The memory buffer containing the characters to send to the HTTP output stream.
- index
- Int32
The buffer position of the first character to send.
- count
- Int32
The number of characters to send beginning at the position specified by index
.
Exceptions
buffer
, is null
.
-or-
index
is less than zero.
-or-
count
is less than zero.
-or-
buffer
length minus index
is less than count
.
See also
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈