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. 使用 .aspx 檔案中的@ Page指示詞,將屬性設為您想要的值。ResponseEncodingSet 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.

適用於