PageAdapter.CacheVaryByParams Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a list of additional parameters from HTTP GET and POST requests by which caching is varied for the Web page to which this derived page adapter is attached.
public:
virtual property System::Collections::Specialized::StringCollection ^ CacheVaryByParams { System::Collections::Specialized::StringCollection ^ get(); };
public virtual System.Collections.Specialized.StringCollection CacheVaryByParams { get; }
member this.CacheVaryByParams : System.Collections.Specialized.StringCollection
Public Overridable ReadOnly Property CacheVaryByParams As StringCollection
Property Value
An IList that contains a list of the GET and POST parameters; otherwise, null
.
Remarks
Entities on the Web that cache Web pages cache multiple versions based on, among other factors, the request parameters. For example, a version for each store location within a retail chain for which a page might be generated would typically be cached based on the parameter name (for example, StoreID
).
For specific browsers, it might be necessary to vary caching by GET or POST parameters in addition to the parameters that control target-independent caching. For example, it might be necessary to cache different versions of a page for different mobile phone service providers.
Notes to Inheritors
When you inherit from the PageAdapter class, you can override the CacheVaryByParams property to return a list of the additional GET or POST parameters to control target-specific caching. The CacheVaryByParams base method returns null
.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기