Export (0) Print
Expand All

CacheControlHeaderValue Class

.NET Framework 4.5

Represents the value of the Cache-Control header.

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

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

public class CacheControlHeaderValue : ICloneable

The CacheControlHeaderValue type exposes the following members.

  NameDescription
Public methodSupported in .NET for Windows Store appsCacheControlHeaderValueInitializes a new instance of the CacheControlHeaderValue class.
Top

  NameDescription
Public propertySupported in .NET for Windows Store appsExtensionsCache-extension tokens, each with an optional assigned value.
Public propertySupported in .NET for Windows Store appsMaxAgeThe maximum age, specified in seconds, that the HTTP client is willing to accept a response.
Public propertySupported in .NET for Windows Store appsMaxStaleWhether an HTTP client is willing to accept a response that has exceeded its expiration time.
Public propertySupported in .NET for Windows Store appsMaxStaleLimitThe maximum time, in seconds, an HTTP client is willing to accept a response that has exceeded its expiration time.
Public propertySupported in .NET for Windows Store appsMinFreshThe freshness lifetime, in seconds, that an HTTP client is willing to accept a response.
Public propertySupported in .NET for Windows Store appsMustRevalidateWhether the origin server require revalidation of a cache entry on any subsequent use when the cache entry becomes stale.
Public propertySupported in .NET for Windows Store appsNoCacheWhether an HTTP client is willing to accept a cached response.
Public propertySupported in .NET for Windows Store appsNoCacheHeadersA collection of fieldnames in the "no-cache" directive in a cache-control header field on an HTTP response.
Public propertySupported in .NET for Windows Store appsNoStoreWhether a cache must not store any part of either the HTTP request mressage or any response.
Public propertySupported in .NET for Windows Store appsNoTransformWhether a cache or proxy must not change any aspect of the entity-body.
Public propertySupported in .NET for Windows Store appsOnlyIfCachedWhether 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.
Public propertySupported in .NET for Windows Store appsPrivateWhether all or part of the HTTP response message is intended for a single user and must not be cached by a shared cache.
Public propertySupported in .NET for Windows Store appsPrivateHeadersA collection fieldnames in the "private" directive in a cache-control header field on an HTTP response.
Public propertySupported in .NET for Windows Store appsProxyRevalidateWhether the origin server require revalidation of a cache entry on any subsequent use when the cache entry becomes stale for shared user agent caches.
Public propertySupported in .NET for Windows Store appsPublicWhether 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.
Public propertySupported in .NET for Windows Store appsSharedMaxAgeThe 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.
Top

  NameDescription
Public methodSupported in .NET for Windows Store appsEqualsDetermines whether the specified Object is equal to the current CacheControlHeaderValue object. (Overrides Object.Equals(Object).)
Protected methodSupported in .NET for Windows Store appsFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetHashCodeServes as a hash function for a CacheControlHeaderValue object. (Overrides Object.GetHashCode().)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported in .NET for Windows Store appsMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberSupported in .NET for Windows Store appsParseConverts a string to an CacheControlHeaderValue instance.
Public methodSupported in .NET for Windows Store appsToStringReturns a string that represents the current CacheControlHeaderValue object. (Overrides Object.ToString().)
Public methodStatic memberSupported in .NET for Windows Store appsTryParseDetermines whether a string is valid CacheControlHeaderValue information.
Top

  NameDescription
Explicit interface implemetationPrivate methodICloneable.CloneCreates a new object that is a copy of the current CacheControlHeaderValue instance.
Top

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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