OutputCacheParameters.VaryByParam 屬性

定義

取得以分號分隔的查詢字串或表單張貼參數清單,輸出快取會使用此清單變更快取項目。Gets a semicolon-delimited list of query string or form POST parameters that the output cache uses to vary the cache entry.

public:
 property System::String ^ VaryByParam { System::String ^ get(); void set(System::String ^ value); };
public string VaryByParam { get; set; }
member this.VaryByParam : string with get, set
Public Property VaryByParam As String

屬性值

String

查詢字串的清單或表單 POST 參數。The list of query string or form POST parameters.

備註

當這個屬性設定為多個參數時,輸出快取會針對每個指定的參數包含不同版本的要求檔。When this property is set to multiple parameters, the output cache contains a different version of the requested document for each specified parameter. 可能的值包括 "none"、"*",以及任何有效的查詢字串,或 POST 參數名稱。Possible values include "none", "*", and any valid query string or POST parameter name.

適用於

另請參閱