SqlExecutionException 建構函式

定義

初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class.

多載

SqlExecutionException()

使用預設值,初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class using default values.

SqlExecutionException(String)

使用傳入的訊息來初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class using the passed message.

SqlExecutionException(String, Exception)

使用傳入的訊息和例外狀況,初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class using the passed message and exception.

SqlExecutionException(String, String, String, String, String, SqlException)

初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class.

SqlExecutionException()

使用預設值,初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class using default values.

public:
 SqlExecutionException();
public SqlExecutionException ();
Public Sub New ()

SqlExecutionException(String)

使用傳入的訊息來初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class using the passed message.

public:
 SqlExecutionException(System::String ^ message);
public SqlExecutionException (string message);
new System.Web.Management.SqlExecutionException : string -> System.Web.Management.SqlExecutionException
Public Sub New (message As String)

參數

message
String

解釋例外狀況原因的錯誤訊息。The error message that explains the reason for the exception.

SqlExecutionException(String, Exception)

使用傳入的訊息和例外狀況,初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class using the passed message and exception.

public:
 SqlExecutionException(System::String ^ message, Exception ^ innerException);
public SqlExecutionException (string message, Exception innerException);
new System.Web.Management.SqlExecutionException : string * Exception -> System.Web.Management.SqlExecutionException
Public Sub New (message As String, innerException As Exception)

參數

message
String

解釋例外狀況原因的錯誤訊息。The error message that explains the reason for the exception.

innerException
Exception

發生的 ExceptionThe Exception encountered.

SqlExecutionException(String, String, String, String, String, SqlException)

初始化 SqlExecutionException 類別的新執行個體。Initializes a new instance of the SqlExecutionException class.

public:
 SqlExecutionException(System::String ^ message, System::String ^ server, System::String ^ database, System::String ^ sqlFile, System::String ^ commands, System::Data::SqlClient::SqlException ^ sqlException);
public SqlExecutionException (string message, string server, string database, string sqlFile, string commands, System.Data.SqlClient.SqlException sqlException);
new System.Web.Management.SqlExecutionException : string * string * string * string * string * System.Data.SqlClient.SqlException -> System.Web.Management.SqlExecutionException

參數

message
String

解釋例外狀況原因的錯誤訊息。The error message that explains the reason for the exception.

server
String

執行 SQL 命令的 SQL Server 執行個體。The SQL Server instance against which the SQL commands are run.

database
String

執行 SQL 命令的資料庫。The database against which the SQL commands are run.

sqlFile
String

安裝檔名稱,該檔案包含要執行的 SQL 命令。The name of the installation file containing the SQL commands being run.

commands
String

例外狀況發生時所執行的 SQL 命令。The SQL commands being run when the exception occurred.

sqlException
SqlException

處理 SQL 命令時發生的 SqlExceptionThe SqlException encountered when processing the SQL commands.

另請參閱

適用於