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