Share via


ODataBatchWriter Class

 

Represents a class for writing OData batch messages; also verifies the proper sequence of write calls on the writer.

Namespace:   Microsoft.OData.Core
Assembly:  Microsoft.OData.Core (in Microsoft.OData.Core.dll)

Inheritance Hierarchy

System.Object
  Microsoft.OData.Core.ODataBatchWriter

Syntax

public sealed class ODataBatchWriter
public ref class ODataBatchWriter sealed 
[<Sealed>]
type ODataBatchWriter = class end
Public NotInheritable Class ODataBatchWriter

Methods

Name Description
System_CAPS_pubmethod CreateOperationRequestMessage(String, Uri, String)

Creates an ODataBatchOperationRequestMessage for writing an operation of a batch request.

System_CAPS_pubmethod CreateOperationRequestMessageAsync(String, Uri, String)

Creates a message for asynchronously writing an operation of a batch request.

System_CAPS_pubmethod CreateOperationResponseMessage(String)

Creates a message for writing an operation of a batch response.

System_CAPS_pubmethod CreateOperationResponseMessageAsync(String)

Asynchronously creates an ODataBatchOperationResponseMessage for writing an operation of a batch response.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Flush()

Flushes the write buffer to the underlying stream.

System_CAPS_pubmethod FlushAsync()

Flushes the write buffer to the underlying stream asynchronously.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod WriteEndBatch()

Ends a batch; can only be called after WriteStartBatch has been called and if no other active changeset or operation exist.

System_CAPS_pubmethod WriteEndBatchAsync()

Asynchronously ends a batch; can only be called after WriteStartBatch has been called and if no other active change set or operation exist.

System_CAPS_pubmethod WriteEndChangeset()

Ends an active changeset; this can only be called after WriteStartChangeset and only once for each changeset.

System_CAPS_pubmethod WriteEndChangesetAsync()

Asynchronously ends an active change set; this can only be called after WriteStartChangeset and only once for each change set.

System_CAPS_pubmethod WriteStartBatch()

Starts a new batch; can be only called once and as first call.

System_CAPS_pubmethod WriteStartBatchAsync()

Asynchronously starts a new batch; can be only called once and as first call.

System_CAPS_pubmethod WriteStartChangeset()

Starts a new changeset; can only be called after WriteStartBatch and if no other active operation or changeset exists.

System_CAPS_pubmethod WriteStartChangesetAsync()

Asynchronously starts a new change set; can only be called after WriteStartBatch and if no other active operation or change set exists.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.OData.Core Namespace

Return to top