Share via


ODataBatchResponseItem.WriteMessageAsync Method

 

Namespace:   System.Web.Http.OData.Batch
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static WriteMessageAsync(ODataBatchWriter, HttpResponseMessage)

Writes a single OData batch response.

System_CAPS_pubmethodSystem_CAPS_static WriteMessageAsync(ODataBatchWriter, HttpResponseMessage, CancellationToken)

Writes a single OData batch response.

See Also

ODataBatchResponseItem Class
System.Web.Http.OData.Batch Namespace

Return to top

ODataBatchResponseItem.WriteMessageAsync Method (ODataBatchWriter, HttpResponseMessage)

Writes a single OData batch response.

Syntax

public static Task WriteMessageAsync(
    ODataBatchWriter writer,
    HttpResponseMessage response
)
public:
static Task^ WriteMessageAsync(
    ODataBatchWriter^ writer,
    HttpResponseMessage^ response
)
static member WriteMessageAsync : 
        writer:ODataBatchWriter *
        response:HttpResponseMessage -> Task
Public Shared Function WriteMessageAsync (
    writer As ODataBatchWriter,
    response As HttpResponseMessage
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A task object representing writing the given batch response using the given writer.

Return to top

ODataBatchResponseItem.WriteMessageAsync Method (ODataBatchWriter, HttpResponseMessage, CancellationToken)

Writes a single OData batch response.

Syntax

[DebuggerStepThroughAttribute]
public static Task WriteMessageAsync(
    ODataBatchWriter writer,
    HttpResponseMessage response,
    CancellationToken cancellationToken
)
public:
[DebuggerStepThroughAttribute]
static Task^ WriteMessageAsync(
    ODataBatchWriter^ writer,
    HttpResponseMessage^ response,
    CancellationToken cancellationToken
)
[<DebuggerStepThroughAttribute>]
static member WriteMessageAsync : 
        writer:ODataBatchWriter *
        response:HttpResponseMessage *
        cancellationToken:CancellationToken -> Task
<DebuggerStepThroughAttribute>
Public Shared Function WriteMessageAsync (
    writer As ODataBatchWriter,
    response As HttpResponseMessage,
    cancellationToken As CancellationToken
) As Task

Parameters

Return Value

Type: System.Threading.Tasks.Task

A task object representing writing the given batch response using the given writer.

Return to top