CacheControlHeaderValue Class

CacheControlHeaderValue Class

.NET Framework (current version)
 

Represents the value of the Cache-Control header.

Namespace:   System.Net.Http.Headers
Assembly:  System.Net.Http (in System.Net.Http.dll)

System.Object
  System.Net.Http.Headers.CacheControlHeaderValue

public class CacheControlHeaderValue : ICloneable

NameDescription
System_CAPS_pubmethodCacheControlHeaderValue()

Initializes a new instance of the CacheControlHeaderValue class.

NameDescription
System_CAPS_pubpropertyExtensions

Cache-extension tokens, each with an optional assigned value.

System_CAPS_pubpropertyMaxAge

The maximum age, specified in seconds, that the HTTP client is willing to accept a response.

System_CAPS_pubpropertyMaxStale

Whether an HTTP client is willing to accept a response that has exceeded its expiration time.

System_CAPS_pubpropertyMaxStaleLimit

The maximum time, in seconds, an HTTP client is willing to accept a response that has exceeded its expiration time.

System_CAPS_pubpropertyMinFresh

The freshness lifetime, in seconds, that an HTTP client is willing to accept a response.

System_CAPS_pubpropertyMustRevalidate

Whether the origin server require revalidation of a cache entry on any subsequent use when the cache entry becomes stale.

System_CAPS_pubpropertyNoCache

Whether an HTTP client is willing to accept a cached response.

System_CAPS_pubpropertyNoCacheHeaders

A collection of fieldnames in the "no-cache" directive in a cache-control header field on an HTTP response.

System_CAPS_pubpropertyNoStore

Whether a cache must not store any part of either the HTTP request mressage or any response.

System_CAPS_pubpropertyNoTransform

Whether a cache or proxy must not change any aspect of the entity-body.

System_CAPS_pubpropertyOnlyIfCached

Whether a cache should either respond using a cached entry that is consistent with the other constraints of the HTTP request, or respond with a 504 (Gateway Timeout) status.

System_CAPS_pubpropertyPrivate

Whether all or part of the HTTP response message is intended for a single user and must not be cached by a shared cache.

System_CAPS_pubpropertyPrivateHeaders

A collection fieldnames in the "private" directive in a cache-control header field on an HTTP response.

System_CAPS_pubpropertyProxyRevalidate

Whether the origin server require revalidation of a cache entry on any subsequent use when the cache entry becomes stale for shared user agent caches.

System_CAPS_pubpropertyPublic

Whether an HTTP response may be cached by any cache, even if it would normally be non-cacheable or cacheable only within a non- shared cache.

System_CAPS_pubpropertySharedMaxAge

The shared maximum age, specified in seconds, in an HTTP response that overrides the "max-age" directive in a cache-control header or an Expires header for a shared cache.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified Object is equal to the current CacheControlHeaderValue object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for a CacheControlHeaderValue object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticParse(String)

Converts a string to an CacheControlHeaderValue instance.

System_CAPS_pubmethodToString()

Returns a string that represents the current CacheControlHeaderValue object.(Overrides Object.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticTryParse(String, CacheControlHeaderValue)

Determines whether a string is valid CacheControlHeaderValue information.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICloneable.Clone()

Creates a new object that is a copy of the current CacheControlHeaderValue instance.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft