HttpCacheVaryByContentEncodings.Item[String] 屬性

定義

取得或設定值,這個值表示快取是否會依據指定的內容編碼方式而有所不同。Gets or sets a value that indicates whether the cache varies according to the specified content encoding.

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

內容編碼方式的名稱。The name of the content encoding.

屬性值

Boolean

如果快取應該依指定的內容編碼方式而有所不同,則為 true,否則為 falsetrue if the cache should vary by the specified content encoding; otherwise, false.

例外狀況

內容編碼方式為 nullThe content encoding is null.

適用於