IHttpSessionState.CodePage プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > IHttpSessionState.CodePage プロパティの意味・解説 

IHttpSessionState.CodePage プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

現在のセッションコード ページ識別子取得または設定します

名前空間: System.Web.SessionState
アセンブリ: System.Web (system.web.dll 内)
構文構文

解説解説
使用例使用例

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);
  }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「IHttpSessionState.CodePage プロパティ」の関連用語

IHttpSessionState.CodePage プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



IHttpSessionState.CodePage プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS