Writer.WriteAsync 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.
Overloads
| Name | Description |
|---|---|
| WriteAsync(Char[], Int32, Int32) |
Writes an array range of characters to this writer in a task. |
| WriteAsync(Char[]) |
Writes the character array to this writer in a task. |
| WriteAsync(Int32) |
Writes one character to this writer in a task. |
| WriteAsync(String) |
Writes the string to this writer in a task. |
| WriteAsync(String, Int32, Int32) |
Writes a range of string characters to this writer in a task. |
WriteAsync(Char[], Int32, Int32)
Writes an array range of characters to this writer in a task.
public System.Threading.Tasks.Task WriteAsync(char[]? cbuf, int off, int len);
member this.WriteAsync : char[] * int * int -> System.Threading.Tasks.Task
Parameters
- cbuf
- Char[]
The array that contains the characters to write.
- off
- Int32
The index of the first character to write.
- len
- Int32
The number of characters to write.
Returns
A task that reports completion or failure of the write operation.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteAsync(Char[])
Writes the character array to this writer in a task.
public System.Threading.Tasks.Task WriteAsync(char[]? cbuf);
member this.WriteAsync : char[] -> System.Threading.Tasks.Task
Parameters
- cbuf
- Char[]
The characters to write.
Returns
A task that reports completion or failure of the write operation.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteAsync(Int32)
Writes one character to this writer in a task.
public System.Threading.Tasks.Task WriteAsync(int c);
member this.WriteAsync : int -> System.Threading.Tasks.Task
Parameters
- c
- Int32
The value whose low 16 bits form the character to write.
Returns
A task that reports completion or failure of the write operation.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteAsync(String)
Writes the string to this writer in a task.
public System.Threading.Tasks.Task WriteAsync(string? str);
member this.WriteAsync : string -> System.Threading.Tasks.Task
Parameters
- str
- String
The text to write.
Returns
A task that reports completion or failure of the write operation.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
WriteAsync(String, Int32, Int32)
Writes a range of string characters to this writer in a task.
public System.Threading.Tasks.Task WriteAsync(string? str, int off, int len);
member this.WriteAsync : string * int * int -> System.Threading.Tasks.Task
Parameters
- str
- String
The text that contains the characters to write.
- off
- Int32
The index of the first character to write.
- len
- Int32
The number of characters to write.
Returns
A task that reports completion or failure of the write operation.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.