IHttpSessionState.CodePage プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As IHttpSessionState Dim value As Integer value = instance.CodePage instance.CodePage = value
現在のセッションのコード ページ識別子。

マルチバイト文字データの解釈、文字値の決定、および並べ替え順序に文字セット (コード ページ) を使用します。コード ページの設定は、Unicode 文字データではなくマルチバイト文字データのみに適用されます。
この CodePage プロパティは、ASP の旧バージョンとの互換性の保持のみのために提供されています。ASP ページとの下位互換性を維持する必要がない場合は、代わりに ContentEncoding プロパティの CodePage プロパティを使用します。

IHttpSessionState インターフェイスの CodePage プロパティを実装して、現在の応答のエンコードを取得および設定するコード例を次に示します。
' ' Session.CodePage exists only to support legacy ASP compatibility. ASP.NET developers should use ' Response.ContentEncoding instead. ' Public Property CodePage As Integer Implements IHttpSessionState.CodePage Get If Not HttpContext.Current Is Nothing Then Return HttpContext.Current.Response.ContentEncoding.CodePage Else Return Encoding.Default.CodePage End If End Get Set If Not HttpContext.Current Is Nothing Then _ HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding(value) End Set End Property
// // Session.CodePage exists only to support legacy ASP compatibility. ASP.NET developers should use // Response.ContentEncoding instead. // public int CodePage { get { if (HttpContext.Current != null) return HttpContext.Current.Response.ContentEncoding.CodePage; else return Encoding.Default.CodePage; } set { if (HttpContext.Current != null) HttpContext.Current.Response.ContentEncoding = Encoding.GetEncoding(value); } }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からIHttpSessionState.CodePage プロパティを検索する場合は、下記のリンクをクリックしてください。

- IHttpSessionState.CodePage プロパティのページへのリンク