## CacheControlHeaderValue::set_MaxAge method


Sets the maximum age value in seconds that determines a time during which the client will accept a response.

```cpp
void System::Net::Http::Headers::CacheControlHeaderValue::set_MaxAge(Nullable<TimeSpan> value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | Nullable\<TimeSpan\> | The maximum age that must be set. |

## See Also

* Class [Nullable](../../../system/nullable/)
* Class [TimeSpan](../../../system/timespan/)
* Class [CacheControlHeaderValue](../)
* Namespace [System::Net::Http::Headers](../../)
* Library [Aspose.PUB for C++](../../../)
