---
title: "Aspose::Email::Clients::Google::BaseDataObject::set_ETag method"
url: "https://reference.aspose.com/email/cpp/aspose.email.clients.google/basedataobject/set_etag/"
product: "Aspose.Email for C++"
description: "An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests."
---


## set_ETag {#set_etag}

An ETag or entity tag is one of several mechanisms that HTTP provides for web cache validation, and which allows a client to make conditional requests. This allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. ETags can also be used for optimistic concurrency control, as a way to help prevent simultaneous updates of a resource from overwriting each other.

**Returns:** virtual void Aspose::Email::Clients::Google::

```cpp
set_ETag(System::String value)
```

| Parameter | Description |
| --- | --- |
| value |  |

