HttpCacheVaryByParams.IgnoreParams 属性

定义

获取或设置一个值,该值指示某个 HTTP 响应是否随 GetPost 参数而变化。

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

属性值

Boolean

如果忽略 HTTP 请求参数,则为 true;否则,为 false

注解

IgnoreParams 属性 true 设置为等效于将 @ OutputCache 指令 VaryByParams 属性设置为资源“none”。

适用于