IOwinResponse.WriteAsync Method (Byte[], Int32, Int32, CancellationToken)

Writes information to a response asynchronously.

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

  • offset
    Type: System.Int32
    The zero-based byte offset in the data parameter at which to begin copying bytes to the port.

Return Value

Type: System.Threading.Tasks.Task
The information to write.

See Also

Reference

IOwinResponse Interface

WriteAsync Overload

Microsoft.Owin Namespace