# Google.Cloud.Diagnostics.AspNetCore3 - Class AspNetCoreErrorReportingExtensions (5.3.0)

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

- [5.3.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/latest/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreErrorReportingExtensions)
- [5.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/5.2.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreErrorReportingExtensions)
- [5.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/5.1.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreErrorReportingExtensions)
- [5.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/5.0.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreErrorReportingExtensions)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/4.4.0/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreErrorReportingExtensions)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/4.3.1/Google.Cloud.Diagnostics.AspNetCore3.AspNetCoreErrorReportingExtensions)

    public static class AspNetCoreErrorReportingExtensions

Reference documentation and code samples for the Google.Cloud.Diagnostics.AspNetCore3 class AspNetCoreErrorReportingExtensions.

Extensions for configuring Google Cloud Error Reporting in ASP.NET Core applications.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AspNetCoreErrorReportingExtensions

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Diagnostics.AspNetCore3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Diagnostics.AspNetCore3/latest/Google.Cloud.Diagnostics.AspNetCore3)

## Assembly

Google.Cloud.Diagnostics.AspNetCore3.dll

## Methods

### AddGoogleErrorReportingForAspNetCore(IServiceCollection, ErrorReportingServiceOptions)

    public static IServiceCollection AddGoogleErrorReportingForAspNetCore(this IServiceCollection services, ErrorReportingServiceOptions options = null)

Configures Google Cloud Error Reporting for ASP .NET Core applications./\>.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `services` | `https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection` |
| `options` | `Google.Cloud.Diagnostics.Common.ErrorReportingServiceOptions` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/microsoft.extensions.dependencyinjection.iservicecollection` |   |