SessionStateSection.Mode プロパティ

定義

セッション状態の格納場所を指定する値を取得または設定します。

public:
 property System::Web::SessionState::SessionStateMode Mode { System::Web::SessionState::SessionStateMode get(); void set(System::Web::SessionState::SessionStateMode value); };
[System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.SessionState.SessionStateMode.InProc)]
public System.Web.SessionState.SessionStateMode Mode { get; set; }
[<System.Configuration.ConfigurationProperty("mode", DefaultValue=System.Web.SessionState.SessionStateMode.InProc)>]
member this.Mode : System.Web.SessionState.SessionStateMode with get, set
Public Property Mode As SessionStateMode

プロパティ値

SessionStateMode 値のいずれか 1 つ。 既定値は InProc です。

属性

次のコード例では、 プロパティを取得する方法を Mode 示します。 オブジェクトにアクセスする方法については、クラス トピックの SessionStateSection コード例を SessionStateSection 参照してください。

// Display the current Mode property value.
Console.WriteLine("Mode: {0}",
  sessionStateSection.Mode);
' Display the current Mode property value.
Console.WriteLine("Mode: {0}", sessionStateSection.Mode)

注釈

SessionStateModeは必須の属性ではなく、構成階層の上位レベルまたは既定値から継承できます。 ただし、このセクションの構成ハンドラーでは、このセクションの作成時に、現在の継承値に基づいてモードが常に書き込まれます。

適用対象