IOwinResponse.WriteAsync Method (Byte[], Int32, Int32, CancellationToken)
Asynchronously writes the given bytes to the response body stream.
Namespace: Microsoft.Owin
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Syntax
'Declaration
Function WriteAsync ( _
data As Byte(), _
offset As Integer, _
count As Integer, _
token As CancellationToken _
) As Task
'Usage
Dim instance As IOwinResponse
Dim data As Byte()
Dim offset As Integer
Dim count As Integer
Dim token As CancellationToken
Dim returnValue As Task
returnValue = instance.WriteAsync(data, _
offset, count, token)
Task WriteAsync(
byte[] data,
int offset,
int count,
CancellationToken token
)
Task^ WriteAsync(
array<unsigned char>^ data,
int offset,
int count,
CancellationToken token
)
abstract WriteAsync :
data:byte[] *
offset:int *
count:int *
token:CancellationToken -> Task
function WriteAsync(
data : byte[],
offset : int,
count : int,
token : CancellationToken
) : Task
Parameters
- data
Type: System.Byte[]
The response data.
- offset
Type: System.Int32
The zero-based byte offset in the data parameter at which to begin copying bytes.
- count
Type: System.Int32
The number of bytes to write.
- token
Type: System.Threading.CancellationToken
A token used to indicate cancellation.
Return Value
Type: System.Threading.Tasks.Task
A Task tracking the state of the write operation.