Dela via


HttpCacheControl.ReadBehavior Property

Definition

Get or set the read behavior to use for cache control on the HttpCacheControl object.

public:
 property HttpCacheReadBehavior ReadBehavior { HttpCacheReadBehavior get(); void set(HttpCacheReadBehavior value); };
HttpCacheReadBehavior ReadBehavior();

void ReadBehavior(HttpCacheReadBehavior value);
public HttpCacheReadBehavior ReadBehavior { get; set; }
var httpCacheReadBehavior = httpCacheControl.readBehavior;
httpCacheControl.readBehavior = httpCacheReadBehavior;
Public Property ReadBehavior As HttpCacheReadBehavior

Property Value

The read behavior to use for cache control.

Remarks

The ReadBehavior property on the HttpCacheControl object allows an app to get or set the read cache behavior to use on the HttpBaseProtocolFilter object. HTTP read requests can use the local HTTP cache for the responses. Content returned by HTTP requests can be written to the local HTTP cache.

Applies to

See also