OutputStream.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(Byte[]) |
Writes the byte array to this stream in a task. |
| WriteAsync(Int32) |
Writes one byte to this stream in a task. |
| WriteAsync(Byte[], Int32, Int32) |
Writes a range of bytes to this stream in a task. |
WriteAsync(Byte[])
Writes the byte array to this stream in a task.
public System.Threading.Tasks.Task WriteAsync(byte[]? b);
member this.WriteAsync : byte[] -> System.Threading.Tasks.Task
Parameters
- b
- Byte[]
The bytes 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 byte to this stream in a task.
public System.Threading.Tasks.Task WriteAsync(int b);
member this.WriteAsync : int -> System.Threading.Tasks.Task
Parameters
- b
- Int32
The value whose low eight bits form the byte 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(Byte[], Int32, Int32)
Writes a range of bytes to this stream in a task.
public System.Threading.Tasks.Task WriteAsync(byte[]? b, int off, int len);
member this.WriteAsync : byte[] * int * int -> System.Threading.Tasks.Task
Parameters
- b
- Byte[]
The array that contains the bytes to write.
- off
- Int32
The index of the first byte to write.
- len
- Int32
The number of bytes 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.