ODataBatchWriter Class

Writes OData batch messages; also verifies the proper sequence of write calls on the writer.

Inheritance Hierarchy

System.Object
  Microsoft.Data.OData.ODataBatchWriter

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

Syntax

'Declaration
Public NotInheritable Class ODataBatchWriter
'Usage
Dim instance As ODataBatchWriter
public sealed class ODataBatchWriter
public ref class ODataBatchWriter sealed
[<SealedAttribute>]
type ODataBatchWriter =  class end
public final class ODataBatchWriter

The ODataBatchWriter type exposes the following members.

Methods

  Name Description
Public method CreateOperationRequestMessage Creates an ODataBatchOperationRequestMessage for writing an operation of a batch request.
Public method CreateOperationRequestMessageAsync Creates a message for asynchronously writing an operation of a batch request.
Public method CreateOperationResponseMessage Creates a message for writing an operation of a batch response.
Public method CreateOperationResponseMessageAsync Asynchronously creates an ODataBatchOperationResponseMessage for writing an operation of a batch response.
Public method Equals (Inherited from Object.)
Public method Flush Flushes the write buffer to the underlying stream.
Public method FlushAsync Flushes the write buffer to the underlying stream asynchronously.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method WriteEndBatch Ends a batch; can only be called after WriteStartBatch has been called and if no other active changeset or operation exist.
Public method WriteEndBatchAsync Asynchronously ends a batch; can only be called after WriteStartBatch has been called and if no other active change set or operation exist.
Public method WriteEndChangeset Ends an active changeset; this can only be called after WriteStartChangeset and only once for each changeset.
Public method WriteEndChangesetAsync Asynchronously ends an active change set; this can only be called after WriteStartChangeset and only once for each change set.
Public method WriteStartBatch Starts a new batch; can be only called once and as first call.
Public method WriteStartBatchAsync Asynchronously starts a new batch; can be only called once and as first call.
Public method WriteStartChangeset Starts a new changeset; can only be called after WriteStartBatch and if no other active operation or changeset exists.
Public method WriteStartChangesetAsync Asynchronously starts a new change set; can only be called after WriteStartBatch and if no other active operation or change set exists.

Top

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

Reference

Microsoft.Data.OData Namespace