Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpCachePolicyBase.SetCacheability Method (HttpCacheability, String)

When overridden in a derived class, sets the Cache-Control header to the specified HttpCacheability value and appends an extension to the directive.

Namespace:  System.Web
Assembly:  System.Web (in System.Web.dll)

public virtual void SetCacheability(
	HttpCacheability cacheability,
	string field
)

Parameters

cacheability
Type: System.Web.HttpCacheability

The HttpCacheability enumeration value to set the header to.

field
Type: System.String

The cache-control extension to add to the header.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft