HttpCacheVaryByParams.IgnoreParams 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示某个 HTTP 响应是否随 Get 或 Post 参数而变化。
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。
注解
将 IgnoreParams 属性设置为 true 等效于将 资源的 @ OutputCache 指令 VaryByParams 属性设置为“none”。