HttpCacheControl.WriteBehavior 属性

定义

获取或设置要用于 HttpCacheControl 对象上的缓存控件的写入行为。

public:
 property HttpCacheWriteBehavior WriteBehavior { HttpCacheWriteBehavior get(); void set(HttpCacheWriteBehavior value); };
HttpCacheWriteBehavior WriteBehavior();

void WriteBehavior(HttpCacheWriteBehavior value);
public HttpCacheWriteBehavior WriteBehavior { get; set; }
var httpCacheWriteBehavior = httpCacheControl.writeBehavior;
httpCacheControl.writeBehavior = httpCacheWriteBehavior;
Public Property WriteBehavior As HttpCacheWriteBehavior

属性值

要用于缓存控制的读取行为。

注解

HttpCacheControl 对象上的 WriteBehavior 属性允许应用获取或设置要用于 HttpBaseProtocolFilter 对象的写入缓存行为。 HTTP 请求返回的内容可以写入本地 HTTP 缓存。

适用于

另请参阅