SqlExecutionException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 SqlExecutionException 类的新实例。
重载
| 名称 | 说明 |
|---|---|
| SqlExecutionException() |
使用默认值初始化类的新实例 SqlExecutionException 。 |
| SqlExecutionException(String) |
使用传递的消息初始化类的新实例 SqlExecutionException 。 |
| SqlExecutionException(String, Exception) |
使用传递的消息和异常初始化类的新实例 SqlExecutionException 。 |
| SqlExecutionException(String, String, String, String, String, SqlException) |
初始化 SqlExecutionException 类的新实例。 |
SqlExecutionException()
使用默认值初始化类的新实例 SqlExecutionException 。
public:
SqlExecutionException();
public SqlExecutionException();
Public Sub New ()
适用于
SqlExecutionException(String)
使用传递的消息初始化类的新实例 SqlExecutionException 。
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
解释异常原因的错误消息。
适用于
SqlExecutionException(String, Exception)
使用传递的消息和异常初始化类的新实例 SqlExecutionException 。
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
解释异常原因的错误消息。
适用于
SqlExecutionException(String, String, String, String, String, SqlException)
初始化 SqlExecutionException 类的新实例。
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
Public Sub New (message As String, server As String, database As String, sqlFile As String, commands As String, sqlException As SqlException)
参数
- message
- String
解释异常原因的错误消息。
- server
- String
要对其运行 SQL 命令的SQL Server实例。
- database
- String
运行 SQL 命令的数据库。
- sqlFile
- String
包含要运行的 SQL 命令的安装文件的名称。
- commands
- String
发生异常时运行的 SQL 命令。
- sqlException
- SqlException
SqlException处理 SQL 命令时遇到的问题。