HttpCachePolicy.VaryByHeaders 屬性

定義

取得所有將用於區分快取輸出的 HTTP 標頭清單。Gets the list of all HTTP headers that will be used to vary cache output.

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

屬性值

HttpCacheVaryByHeaders

HttpCacheVaryByHeaders,指定要使用哪些 HTTP 標頭來選取快取回應。An HttpCacheVaryByHeaders that specifies which HTTP headers are used to select the cached response.

備註

當快取的專案有數個不同的標頭時,會從每個 HTTP 標頭類型的快取中取得所要求檔的個別版本。When a cached item has several vary headers, a separate version of the requested document is available from the cache for each HTTP header type.

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

適用於

另請參閱