ODataBatchWriter.CreateOperationRequestMessageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateOperationRequestMessageAsync(String, Uri, String) |
Creates a message for asynchronously writing an operation of a batch request. |
CreateOperationRequestMessageAsync(String, Uri, String, BatchPayloadUriOption) |
Creates a message for asynchronously writing an operation of a batch request. |
CreateOperationRequestMessageAsync(String, Uri, String, BatchPayloadUriOption, IList<String>) |
Creates a message for asynchronously writing an operation of a batch request. |
CreateOperationRequestMessageAsync(String, Uri, String)
Creates a message for asynchronously writing an operation of a batch request.
public System.Threading.Tasks.Task<Microsoft.OData.ODataBatchOperationRequestMessage> CreateOperationRequestMessageAsync (string method, Uri uri, string contentId);
member this.CreateOperationRequestMessageAsync : string * Uri * string -> System.Threading.Tasks.Task<Microsoft.OData.ODataBatchOperationRequestMessage>
Public Function CreateOperationRequestMessageAsync (method As String, uri As Uri, contentId As String) As Task(Of ODataBatchOperationRequestMessage)
Parameters
- method
- String
The HTTP method to be used for this request operation.
- uri
- Uri
The URI to be used for this request operation.
- contentId
- String
The Content-ID value to write in ChangeSet header, would be ignored if method
is "GET".
Returns
The message that can be used to asynchronously write the request operation.
Applies to
CreateOperationRequestMessageAsync(String, Uri, String, BatchPayloadUriOption)
Creates a message for asynchronously writing an operation of a batch request.
public System.Threading.Tasks.Task<Microsoft.OData.ODataBatchOperationRequestMessage> CreateOperationRequestMessageAsync (string method, Uri uri, string contentId, Microsoft.OData.BatchPayloadUriOption payloadUriOption);
member this.CreateOperationRequestMessageAsync : string * Uri * string * Microsoft.OData.BatchPayloadUriOption -> System.Threading.Tasks.Task<Microsoft.OData.ODataBatchOperationRequestMessage>
Public Function CreateOperationRequestMessageAsync (method As String, uri As Uri, contentId As String, payloadUriOption As BatchPayloadUriOption) As Task(Of ODataBatchOperationRequestMessage)
Parameters
- method
- String
The HTTP method to be used for this request operation.
- uri
- Uri
The URI to be used for this request operation.
- contentId
- String
The Content-ID value to write in ChangeSet header, would be ignored if method
is "GET".
- payloadUriOption
- BatchPayloadUriOption
The format of operation Request-URI, which could be AbsoluteUri, AbsoluteResourcePathAndHost, or RelativeResourcePath.
Returns
The message that can be used to asynchronously write the request operation.
Applies to
CreateOperationRequestMessageAsync(String, Uri, String, BatchPayloadUriOption, IList<String>)
Creates a message for asynchronously writing an operation of a batch request.
public System.Threading.Tasks.Task<Microsoft.OData.ODataBatchOperationRequestMessage> CreateOperationRequestMessageAsync (string method, Uri uri, string contentId, Microsoft.OData.BatchPayloadUriOption payloadUriOption, System.Collections.Generic.IList<string> dependsOnIds);
member this.CreateOperationRequestMessageAsync : string * Uri * string * Microsoft.OData.BatchPayloadUriOption * System.Collections.Generic.IList<string> -> System.Threading.Tasks.Task<Microsoft.OData.ODataBatchOperationRequestMessage>
Public Function CreateOperationRequestMessageAsync (method As String, uri As Uri, contentId As String, payloadUriOption As BatchPayloadUriOption, dependsOnIds As IList(Of String)) As Task(Of ODataBatchOperationRequestMessage)
Parameters
- method
- String
The HTTP method to be used for this request operation.
- uri
- Uri
The URI to be used for this request operation.
- contentId
- String
The Content-ID value to write in ChangeSet header, would be ignored if method
is "GET".
- payloadUriOption
- BatchPayloadUriOption
The format of operation Request-URI, which could be AbsoluteUri, AbsoluteResourcePathAndHost, or RelativeResourcePath.
Returns
The message that can be used to asynchronously write the request operation.