# Storage Transfer v1 API - Enum TransferOptions.Types.OverwriteWhen (2.10.0)

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

- [2.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/latest/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.9.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.8.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.7.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.6.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.5.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.4.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.3.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.2.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.1.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [2.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/2.0.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.2.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.1.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.StorageTransfer.V1/1.0.0/Google.Cloud.StorageTransfer.V1.TransferOptions.Types.OverwriteWhen)

    public enum TransferOptions.Types.OverwriteWhen

Reference documentation and code samples for the Storage Transfer v1 API enum TransferOptions.Types.OverwriteWhen.

Specifies when to overwrite an object in the sink when an object with
matching name is found in the source.

## Namespace

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

## Assembly

Google.Cloud.StorageTransfer.V1.dll

| ## Fields ||
|---|---|
| **Name** | **Description** |
| `Always` | Always overwrite the destination object with the source object, even if the HTTP Etags or checksum values are the same. |
| `Different` | Overwrites destination objects with the source objects, only if the objects have the same name but different HTTP ETags or checksum values. |
| `Never` | Never overwrites a destination object if a source object has the same name. In this case, the source object is not transferred. |
| `Unspecified` | Overwrite behavior is unspecified. |