BatchResponseContent.GetResponseByIdAsync 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
GetResponseByIdAsync(String) |
Gets a batch response as HttpResponseMessage for the specified batch request id. The returned HttpResponseMessage MUST be disposed since it implements an IDisposable. |
GetResponseByIdAsync<T>(String) |
Gets a batch response as a requested type for the specified batch request id. |
GetResponseByIdAsync(String)
Gets a batch response as HttpResponseMessage for the specified batch request id. The returned HttpResponseMessage MUST be disposed since it implements an IDisposable.
public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> GetResponseByIdAsync (string requestId);
member this.GetResponseByIdAsync : string -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function GetResponseByIdAsync (requestId As String) As Task(Of HttpResponseMessage)
Parameters
- requestId
- String
A batch request id.
Returns
A HttpResponseMessage response object for a batch request.
Applies to
GetResponseByIdAsync<T>(String)
Gets a batch response as a requested type for the specified batch request id.
public System.Threading.Tasks.Task<T> GetResponseByIdAsync<T> (string requestId);
member this.GetResponseByIdAsync : string -> System.Threading.Tasks.Task<'T>
Public Function GetResponseByIdAsync(Of T) (requestId As String) As Task(Of T)
Type Parameters
- T
Parameters
- requestId
- String
A batch request id.
Returns
A deserialized object of type THttpResponseMessage.