asp.net.ph

HttpCachePolicy.SetCacheability Method ( HttpCacheability )

System.Web Namespace   HttpCachePolicy Class


Sets the Cache-Control header to one of the values of HttpCacheability.

[ VB ]
Overloads Public Sub SetCacheability ( _
   ByVal cacheability As HttpCacheability _
)

[ C# ]
public void SetCacheability (
   HttpCacheability cacheability
);

[ C++ ]
public: void SetCacheability (
   HttpCacheability cacheability
);

[ JScript ]
public function SetCacheability (
   cacheability : HttpCacheability
);

Parameters

cacheability
An HttpCacheability enumeration value.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException Occurs when cacheability is not one of the enumeration values.

Example

The following example sets the Cache-Control header to the enumerated value no-cache.

Response.Cache.SetCacheability ( HttpCacheability.NoCache );
  C# VB

See Also

HttpCachePolicy Members   HttpCachePolicy.SetCacheability Overload List Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph