HttpCachePolicyWrapper.SetCacheability Method (HttpCacheability)

 

Sets the Cache-Control header to the specified HttpCacheability value.

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

public override void SetCacheability(
	HttpCacheability cacheability
)

Parameters

cacheability
Type: System.Web.HttpCacheability

The HttpCacheability enumeration value to set the header to.

Exception Condition
ArgumentOutOfRangeException

cacheability is not one of the enumeration values.

.NET Framework
Available since 3.5
Return to top
Show: