HttpCacheVaryByParams.IgnoreParams 属性
定义
获取或设置一个值,该值指示某个 HTTP 响应是否随 Get 或 Post 参数而变化。Gets or sets a value indicating whether an HTTP response varies by Get or Post parameters.
public:
property bool IgnoreParams { bool get(); void set(bool value); };
public bool IgnoreParams { get; set; }
member this.IgnoreParams : bool with get, set
Public Property IgnoreParams As Boolean
属性值
如果忽略 HTTP 请求参数,则为 true;否则,为 false。true if HTTP request parameters are ignored; otherwise, false.
注解
将 IgnoreParams 属性设置为 true 等效于将资源的 @ OutputCache 指令 VaryByParams 属性设置为 "无"。Setting the IgnoreParams property to true is equivalent to setting the @ OutputCache directive VaryByParams attribute to "none" for the resource.