語言

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。

適用於