语言

HttpCacheVaryByContentEncodings.Item[String] 属性

定义

获取或设置一个值,该值指示缓存是否根据指定的内容编码而变化。

public:
 property bool default[System::String ^] { bool get(System::String ^ contentEncoding); void set(System::String ^ contentEncoding, bool value); };
public bool this[string contentEncoding] { get; set; }
member this.Item(string) : bool with get, set
Default Public Property Item(contentEncoding As String) As Boolean

参数

contentEncoding
String

内容编码的名称。

属性值

true 如果缓存应因指定的内容编码而异,否则,为 false.

例外

内容编码为 null.

适用于