OutputCacheParameters.VaryByHeader 属性
定义
获取或设置用于改变缓存项的一组逗号分隔的标头名称。Gets or sets a comma-delimited set of header names used to vary the cache entry. 标头名称标识与请求关联的 HTTP 标头。The header names identify HTTP headers associated with the request.
public:
property System::String ^ VaryByHeader { System::String ^ get(); void set(System::String ^ value); };
public string VaryByHeader { get; set; }
member this.VaryByHeader : string with get, set
Public Property VaryByHeader As String
属性值
改变内容所依据的标头列表。A list of headers by which to vary the content.
注解
如果将此属性设置为多个标头,则输出缓存将为每个指定的标头包含不同版本的请求文档。When this property is set to multiple headers, the output cache contains a different version of the requested document for each specified header.