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.

適用於