使用英语阅读

通过


Page.ResponseEncoding 属性

定义

设置当前的 HttpResponse 对象的编码语言。

C#
protected string ResponseEncoding { set; }
C#
[System.ComponentModel.Browsable(false)]
public string ResponseEncoding { get; set; }

属性值

包含当前的 HttpResponse 的编码语言的字符串。

属性

注解

在大多数情况下,请勿在代码中设置此属性。 使用 ResponseEncoding .aspx 文件中的 @ Page 指令将 属性设置为所需的值。 请求页面时,动态生成的类将设置 属性。

适用于

产品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1