System::Net::Http::Headers::CacheControlHeaderValue class
Contents
[
Hide
]CacheControlHeaderValue class
Represents a value of the ‘Cache-Control’ header. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class CacheControlHeaderValue : public System::ICloneable
Methods
Method | Description |
---|---|
CacheControlHeaderValue() | Constructs a new instance. |
Equals(System::SharedPtr<Object>) override | Compares objects using C# Object.Equals semantics. |
get_Extensions() | Returns the collection of the cache-extension tokens. |
get_MaxAge() | Gets the maximum age value in seconds that determines a time during which the client will accept a response. |
get_MaxStale() | Gets the value that determines if the client will accept the expired responses. |
get_MaxStaleLimit() | Gets the value in seconds that determines the time during which the client will accept the expired responses. |
get_MinFresh() | Gets the value that determines the freshness lifetime. |
get_MustRevalidate() | Gets the value that determines if the server requires revalidation of a cache entry when the it becomes stale. |
get_NoCache() | RTTI information. |
get_NoCacheHeaders() | Gets the collection of fieldnames in the ’no-cache’ directive in the ‘Cache-Control’ header. |
get_NoStore() | Gets the value that determines if a cache must not store any part of an HTTP request or response. |
get_NoTransform() | Gets the value that determines if a cache or proxy must not change any part of the entity body. |
get_OnlyIfCached() | Gets the value that determines if the client must use only cached entries. |
get_Private() | Gets the value that determines if the HTTP response message or its part is intended for a single user and must not be cached by a shared cache. |
get_PrivateHeaders() | Gets the collection of fieldnames in the ‘private’ directive in the ‘Cache-Control’ header. |
get_ProxyRevalidate() | Gets the value that determines if the server requires revalidation of a cache entry when it becomes stale for the shared user agent caches. |
get_Public() | Gets the value that determines if an HTTP response can be cached by any cache. |
get_SharedMaxAge() | Gets the shared maximum age value in seconds that overrides the ‘max-age’ directive in the ‘Cache-Control’. header or the ‘Expires’ header for a shared cache. |
static GetCacheControlLength(String, int32_t, System::SharedPtr<CacheControlHeaderValue>, System::SharedPtr<CacheControlHeaderValue>&) | Converts a passed string from the specified index to an instance of the CacheControlHeaderValue class. |
GetHashCode() const override | Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. |
static Parse(String) | Converts a passed string to an instance of the CacheControlHeaderValue class. |
set_MaxAge(Nullable<TimeSpan>) | Sets the maximum age value in seconds that determines a time during which the client will accept a response. |
set_MaxStale(bool) | Sets the value that determines if the client will accept the expired responses. |
set_MaxStaleLimit(Nullable<TimeSpan>) | Sets the value in seconds that determines the time during which the client will accept the expired responses. |
set_MinFresh(Nullable<TimeSpan>) | Sets the value that determines the freshness lifetime. |
set_MustRevalidate(bool) | Sets the value that determines if the server requires revalidation of a cache entry when the it becomes stale. |
set_NoCache(bool) | Sets the value that determines if the client will accept a cached response. |
set_NoStore(bool) | Sets the value that determines if a cache must not store any part of an HTTP request or response. |
set_NoTransform(bool) | Sets the value that determines if a cache or proxy must not change any part of the entity body. |
set_OnlyIfCached(bool) | Sets the value that determines if the client must use only cached entries. |
set_Private(bool) | Sets the value that determines if the HTTP response message or its part is intended for a single user and must not be cached by a shared cache. |
set_ProxyRevalidate(bool) | Sets the value that determines if the server requires revalidation of a cache entry when it becomes stale for the shared user agent caches. |
set_Public(bool) | Sets the value that determines if an HTTP response can be cached by any cache. |
set_SharedMaxAge(Nullable<TimeSpan>) | Sets the shared maximum age value in seconds that overrides the ‘max-age’ directive in the ‘Cache-Control’. header or the ‘Expires’ header for a shared cache. |
ToString() const override | Analog of C# Object.ToString() method. Enables converting custom objects to string. |
static TryParse(String, System::SharedPtr<CacheControlHeaderValue>&) | Tries to convert a passed string to an instance of the CacheControlHeaderValue class. |
See Also
- Class ICloneable
- Namespace System::Net::Http::Headers
- Library Aspose.TeX for C++