HttpCachePolicy.VaryByParams 屬性

定義

取得由 HTTP GET 或 HTTP POST 接收之影響快取的參數清單。Gets the list of parameters received by an HTTP GET or HTTP POST that affect caching.

public:
 property System::Web::HttpCacheVaryByParams ^ VaryByParams { System::Web::HttpCacheVaryByParams ^ get(); };
public System.Web.HttpCacheVaryByParams VaryByParams { get; }
member this.VaryByParams : System.Web.HttpCacheVaryByParams
Public ReadOnly Property VaryByParams As HttpCacheVaryByParams

屬性值

HttpCacheVaryByParams

HttpCacheVaryByParams,指定要使用哪些快取控制項標頭來選取快取回應。An HttpCacheVaryByParams that specifies which cache-control headers are used to select the cached response.

備註

您可以從集合中每個具名引數的快取中,取得所要求檔的個別版本 VaryByParamsA separate version of the requested document is available from the cache for each named parameter in the VaryByParams collection.

VaryByParams 在 .NET Framework 版本3.5 中引進。VaryByParams is introduced in the .NET Framework version 3.5. 如需詳細資訊,請參閱版本和相依性For more information, see Versions and Dependencies.

適用於

另請參閱