Page.ResponseEncoding Page.ResponseEncoding Page.ResponseEncoding Page.ResponseEncoding Property

定义

设置当前的 HttpResponse 对象的编码语言。Sets the encoding language for the current HttpResponse object.

public:
 property System::String ^ ResponseEncoding { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.Browsable(false)]
public string ResponseEncoding { get; set; }
member this.ResponseEncoding : string with get, set
Public Property ResponseEncoding As String

属性值

包含当前的 HttpResponse 的编码语言的字符串。A string that contains the encoding language for the current HttpResponse.

注解

在大多数情况下,不要在代码中设置此属性。In most circumstances, do not set this property in code. 设置ResponseEncoding属性为要使用的值@ Page指令.aspx 文件中。Set the ResponseEncoding attribute to the value you want using the @ Page directive in the .aspx file. 当请求页面时,动态生成的类来设置属性。When the page is requested, the dynamically generated class sets the property.

适用于