# Service Usage v1 API - Enum DisableServiceRequest.Types.CheckIfServiceHasUsage (2.6.0)

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

- [2.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/latest/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.5.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.4.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.3.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.2.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.1.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/2.0.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.2.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.1.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ServiceUsage.V1/1.0.0/Google.Cloud.ServiceUsage.V1.DisableServiceRequest.Types.CheckIfServiceHasUsage)

    public enum DisableServiceRequest.Types.CheckIfServiceHasUsage

Reference documentation and code samples for the Service Usage v1 API enum DisableServiceRequest.Types.CheckIfServiceHasUsage.

Enum to determine if service usage should be checked when disabling a
service.

## Namespace

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

## Assembly

Google.Cloud.ServiceUsage.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `Check` | If set, service usage is checked when disabling the service. If a service, or its dependents, has usage in the last 30 days, the request returns a FAILED_PRECONDITION error. |
| `Skip` | If set, skip checking service usage when disabling a service. |
| `Unspecified` | When unset, the default behavior is used, which is SKIP. |