OutputCacheParameters.VaryByContentEncoding 属性
定义
获取或设置用于改变缓存项的一组逗号分隔的字符集(内容编码)。Gets or sets a comma-delimited set of character sets (content encodings) used to vary the cache entry.
public:
property System::String ^ VaryByContentEncoding { System::String ^ get(); void set(System::String ^ value); };
public string VaryByContentEncoding { get; set; }
member this.VaryByContentEncoding : string with get, set
Public Property VaryByContentEncoding As String
属性值
改变内容时所依据的字符集的列表。A list of character sets by which to vary the content.
注解
如果将此属性设置为多个字符集,则输出缓存会为每个指定的集包含不同版本的请求文档。When this property is set to multiple character sets, the output cache contains a different version of the requested document for each specified set.
VaryByContentEncoding .NET Framework 版本3.5 中引入。VaryByContentEncoding is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系。For more information, see Versions and Dependencies.