Compartir a través de


BatchResponseContent.GetResponseByIdAsync Method

Definition

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

Task<T>

A deserialized object of type THttpResponseMessage.

Applies to