NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpCachePolicy.SetCacheability (HttpCacheability)

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

[Visual Basic]
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
The HttpCacheability value to be set.

Remarks

The [RB15] field name syntax extension is only semantically valid when used with the private or no-cache directives according to RFC 2616.

This method will fail if cacheability[RB16] violates the restrictiveness [RB17] hierarchy. If a semantically invalid directive is combined with a field, this method will throw an invalid argument exception.

See Also

HttpCachePolicy Class | HttpCachePolicy Members | System.Web Namespace | HttpCachePolicy.SetCacheability Overload List