SqlServices.InstallSessionState メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。
オーバーロード
| 名前 | 説明 |
|---|---|
| InstallSessionState(String, String, SessionStateType) |
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。 |
| InstallSessionState(String, SessionStateType, String) |
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。 |
| InstallSessionState(String, String, String, String, SessionStateType) |
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。 |
InstallSessionState(String, String, SessionStateType)
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。
public:
static void InstallSessionState(System::String ^ server, System::String ^ customDatabase, System::Web::Management::SessionStateType type);
public static void InstallSessionState(string server, string customDatabase, System.Web.Management.SessionStateType type);
static member InstallSessionState : string * string * System.Web.Management.SessionStateType -> unit
Public Shared Sub InstallSessionState (server As String, customDatabase As String, type As SessionStateType)
パラメーター
- server
- String
セッション状態コンポーネントをインストールするSQL Server インスタンス。
- customDatabase
- String
セッション状態コンポーネントをインストールするデータベース。
- type
- SessionStateType
SessionStateType値の 1 つ。インストールするセッション状態の種類を指定します。
例外
型が Custom され、 customDatabase 値が指定されていないか、型が Temporary または Persisted で、 customDatabase 値が null ではありません。
指定したデータベース サーバーに接続できません。
操作に必要な SQL ステートメントの処理中に例外が発生しました。
注釈
server が null であるか指定されていない場合、SqlServices は既定のSQL Server インスタンスを使用します。
Note
データベース サーバーへの接続は、信頼された接続を使用して行われます。
こちらもご覧ください
適用対象
InstallSessionState(String, SessionStateType, String)
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。
public:
static void InstallSessionState(System::String ^ customDatabase, System::Web::Management::SessionStateType type, System::String ^ connectionString);
public static void InstallSessionState(string customDatabase, System.Web.Management.SessionStateType type, string connectionString);
static member InstallSessionState : string * System.Web.Management.SessionStateType * string -> unit
Public Shared Sub InstallSessionState (customDatabase As String, type As SessionStateType, connectionString As String)
パラメーター
- customDatabase
- String
セッション状態コンポーネントをインストールするデータベース。
- type
- SessionStateType
SessionStateType値の 1 つ。インストールするセッション状態の種類を指定します。
- connectionString
- String
使用する接続文字列。 接続文字列は、データベース サーバーへの接続を確立するためにのみ使用されます。 接続文字列でデータベースを指定しても効果はありません。
例外
型が Custom され、 customDatabase 値が指定されていないか、型が Temporary または Persisted で、 customDatabase 値が null ではありません。
指定したデータベース サーバーに接続できません。
操作に必要な SQL ステートメントの処理中に例外が発生しました。
こちらもご覧ください
適用対象
InstallSessionState(String, String, String, String, SessionStateType)
SQL Server データベース ASP.NET セッション状態のコンポーネントをインストールします。
public:
static void InstallSessionState(System::String ^ server, System::String ^ user, System::String ^ password, System::String ^ customDatabase, System::Web::Management::SessionStateType type);
public static void InstallSessionState(string server, string user, string password, string customDatabase, System.Web.Management.SessionStateType type);
static member InstallSessionState : string * string * string * string * System.Web.Management.SessionStateType -> unit
Public Shared Sub InstallSessionState (server As String, user As String, password As String, customDatabase As String, type As SessionStateType)
パラメーター
- server
- String
セッション状態コンポーネントをインストールするSQL Server インスタンス。
- user
- String
データベースに接続するときに使用するユーザー名。
- password
- String
データベースに接続するときに使用するパスワード。
- customDatabase
- String
セッション状態コンポーネントをインストールするデータベース。
- type
- SessionStateType
SessionStateType値の 1 つ。インストールするセッション状態の種類を指定します。
例外
型が Custom され、 customDatabase 値が指定されていないか、型が Temporary または Persisted で、 customDatabase 値が null ではありません。
指定したデータベース サーバーに接続できません。
操作に必要な SQL ステートメントの処理中に例外が発生しました。
注釈
serverが null または指定されていない場合、SqlServices は既定のSQL Server インスタンスを使用します。
Note
データベース サーバーへの接続は、信頼された接続を使用して行われます。