# Delegate BatchRequest.OnResponse&lt;TResponse&gt; (1.73.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.73.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.BatchRequest.OnResponse-1)
- [1.69.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.69.0/Google.Apis.Requests.BatchRequest.OnResponse-1)
- [1.68.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Requests.BatchRequest.OnResponse-1)
- [1.60.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Requests.BatchRequest.OnResponse-1)
- [1.59.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Requests.BatchRequest.OnResponse-1)
- [1.55.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Requests.BatchRequest.OnResponse-1)
- [1.50.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Requests.BatchRequest.OnResponse-1)

    public delegate void BatchRequest.OnResponse<in TResponse>(TResponse content, RequestError error, int index, HttpResponseMessage message) where TResponse : class

A concrete type callback for an individual response.

## Namespace

[Google.Apis.Requests](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests)

## Assembly

Google.Apis.dll

| ## Parameters ||
|---|---|
| **Name** | **Description** |
| `content` | `TResponse` The parsed content response or `null` if the request failed or the response could not be parsed using the associated [Serializer](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Services.IClientService#Google_Apis_Services_IClientService_Serializer). |
| `error` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Requests.RequestError` Error or `null` if the request succeeded and response content was parsed succesfully. |
| `index` | `https://learn.microsoft.com/dotnet/api/system.int32` The request index. |
| `message` | `https://learn.microsoft.com/dotnet/api/system.net.http.httpresponsemessage` The HTTP individual response. |

| ## Type Parameter ||
|---|---|
| **Name** | **Description** |
| `TResponse` | The response type. |

## Extension Method

[Utilities.ThrowIfNull\<T\>(T, string)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)