GlobalizationSection.ResponseHeaderEncoding プロパティ

定義

HTTP 応答のヘッダー エンコードを指定する値を取得または設定します。

public:
 property System::Text::Encoding ^ ResponseHeaderEncoding { System::Text::Encoding ^ get(); void set(System::Text::Encoding ^ value); };
[System.Configuration.ConfigurationProperty("responseHeaderEncoding", DefaultValue="utf-8")]
public System.Text.Encoding ResponseHeaderEncoding { get; set; }
[<System.Configuration.ConfigurationProperty("responseHeaderEncoding", DefaultValue="utf-8")>]
member this.ResponseHeaderEncoding : System.Text.Encoding with get, set
Public Property ResponseHeaderEncoding As Encoding

プロパティ値

HTTP 応答のヘッダー エンコード。 既定は UTF-8 です。

属性

次のコード例は、 ResponseHeaderEncoding プロパティの使用方法を示しています。 このコード例は、 GlobalizationSection クラスに提供されるより大きな例の一部です。

// Display ResponseHeaderEncoding property.
Console.WriteLine("ResponseHeaderEncoding: {0}", 
  configSection.ResponseHeaderEncoding);
' Display ResponseHeaderEncoding property.
Console.WriteLine("ResponseHeaderEncoding: {0}", _
 configSection.ResponseHeaderEncoding)

注釈

ResponseHeaderEncoding プロパティは、HTTP 応答のヘッダー エンコードを指定する値を取得または設定します。 既定のエンコードは UTF-8 です。

適用対象