IOwinResponse.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
WriteAsync(Byte[]) |
Asynchronously writes the given bytes to the response body stream. |
WriteAsync(String) |
Asynchronously writes the given text to the response body stream using UTF-8. |
WriteAsync(Byte[], CancellationToken) |
Asynchronously writes the given bytes to the response body stream. |
WriteAsync(String, CancellationToken) |
Asynchronously writes the given text to the response body stream using UTF-8. |
WriteAsync(Byte[], Int32, Int32, CancellationToken) |
Asynchronously writes the given bytes to the response body stream. |
WriteAsync(Byte[])
- Source:
- IOwinResponse.cs
Asynchronously writes the given bytes to the response body stream.
public System.Threading.Tasks.Task WriteAsync (byte[] data);
abstract member WriteAsync : byte[] -> System.Threading.Tasks.Task
Public Function WriteAsync (data As Byte()) As Task
Parameters
- data
- Byte[]
The response data.
Returns
A Task tracking the state of the write operation.
Applies to
WriteAsync(String)
- Source:
- IOwinResponse.cs
Asynchronously writes the given text to the response body stream using UTF-8.
public System.Threading.Tasks.Task WriteAsync (string text);
abstract member WriteAsync : string -> System.Threading.Tasks.Task
Public Function WriteAsync (text As String) As Task
Parameters
- text
- String
The response data.
Returns
A Task tracking the state of the write operation.
Applies to
WriteAsync(Byte[], CancellationToken)
- Source:
- IOwinResponse.cs
Asynchronously writes the given bytes to the response body stream.
public System.Threading.Tasks.Task WriteAsync (byte[] data, System.Threading.CancellationToken token);
abstract member WriteAsync : byte[] * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteAsync (data As Byte(), token As CancellationToken) As Task
Parameters
- data
- Byte[]
The response data.
- token
- CancellationToken
A token used to indicate cancellation.
Returns
A Task tracking the state of the write operation.
Applies to
WriteAsync(String, CancellationToken)
- Source:
- IOwinResponse.cs
Asynchronously writes the given text to the response body stream using UTF-8.
public System.Threading.Tasks.Task WriteAsync (string text, System.Threading.CancellationToken token);
abstract member WriteAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteAsync (text As String, token As CancellationToken) As Task
Parameters
- text
- String
The response data.
- token
- CancellationToken
A token used to indicate cancellation.
Returns
A Task tracking the state of the write operation.
Applies to
WriteAsync(Byte[], Int32, Int32, CancellationToken)
- Source:
- IOwinResponse.cs
Asynchronously writes the given bytes to the response body stream.
public System.Threading.Tasks.Task WriteAsync (byte[] data, int offset, int count, System.Threading.CancellationToken token);
abstract member WriteAsync : byte[] * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteAsync (data As Byte(), offset As Integer, count As Integer, token As CancellationToken) As Task
Parameters
- data
- Byte[]
The response data.
- offset
- Int32
The zero-based byte offset in the data
parameter at which to begin copying bytes.
- count
- Int32
The number of bytes to write.
- token
- CancellationToken
A token used to indicate cancellation.
Returns
A Task tracking the state of the write operation.