SessionStateSection クラスとは? わかりやすく解説

SessionStateSection クラス

メモ : このクラスは、.NET Framework version 2.0新しく追加されたものです。

Web アプリケーションセッション状態構成します

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

Public NotInheritable Class
 SessionStateSection
    Inherits ConfigurationSection
Dim instance As SessionStateSection
public sealed class SessionStateSection : ConfigurationSection
public ref class SessionStateSection sealed
 : public ConfigurationSection
public final class SessionStateSection extends
 ConfigurationSection
public final class SessionStateSection extends
 ConfigurationSection
解説解説
使用例使用例

このセクションには、2 つコード例用意されています。最初の例では、sessionState セクション複数属性に対して宣言によって値を指定する方法示してます。これらの属性には、SessionStateSection クラスメンバとしてもアクセスできます2 番目の例では、T:System.Web.Configuration.SessionStateSection クラス使用方法示します

次の構成ファイルの例では、sessionState セクションに対して宣言によって値を指定する方法示します

<configuration>
  <system.web>
    <sessionState mode="InProc" 
      stateConnectionString="tcpip=127.0.0.1:42424" 
      stateNetworkTimeout="10"
      sqlConnectionString="data source=127.0.0.1;
        Integrated Security=SSPI"
      sqlCommandTimeout="30" 
      customProvider="" 
      cookieless="UseDeviceProfile" 
      cookieName="ASP.NET_SessionId" 
      timeout="20" 
      allowCustomSqlDatabase="False" 
      regenerateExpiredSessionId="False" 
      partitionResolverType="" 
      useHostingIdentity="True">
      <providers>
        <clear />
      </providers>
    </sessionState>
  </system.web>
</configuration>

T:System.Web.Configuration.SessionStateSection クラス使用方法次のコード例示します

' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration
 = _
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest")

' Get the section.
Dim sessionStateSection As System.Web.Configuration.SessionStateSection
 = _
CType(configuration.GetSection("system.web/sessionState"),
 _
  System.Web.Configuration.SessionStateSection)
// Get the Web application configuration object.
System.Configuration.Configuration configuration =
  System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration("/aspnetTest");

// Get the section related object.
System.Web.Configuration.SessionStateSection sessionStateSection =
  (System.Web.Configuration.SessionStateSection)
  configuration.GetSection("system.web/sessionState");
継承階層継承階層
System.Object
   System.Configuration.ConfigurationElement
     System.Configuration.ConfigurationSection
      System.Web.Configuration.SessionStateSection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からSessionStateSection クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSessionStateSection クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSessionStateSection クラス を検索

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

辞書ショートカット

すべての辞書の索引

「SessionStateSection クラス」の関連用語

SessionStateSection クラスのお隣キーワード
検索ランキング

   

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



SessionStateSection クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS