System.Data.SqlClient.SqlError 构造函数 (System.Int32, System.Byte, System.Byte, System.String, System.String, System.String, System.Int32)

构造新的 SqlError。

包含此类的程序集与 SQLAccess.dll 具有友元关系。此类是为供 SQL Server 使用而设计的。对于其他数据库,请使用数据库自身提供的宿主机制。

**命名空间:**System.Data.SqlClient

**程序集:**System.Data(在 System.Data.dll 中)

SqlError(ByVal infoNumber As Integer, ByVal errorState As Byte, ByVal errorClass As Byte, ByVal server As String, ByVal errorMessage As String, ByVal procedure As String, ByVal lineNumber As Integer)
internal SqlError (int infoNumber, Byte errorState, Byte errorClass, string server, string errorMessage, string procedure, int lineNumber);

参数

Parameter

说明

infoNumber

错误号。

errorState

SQL Server 返回的错误代码,表示错误、警告或“找不到数据”。

errorClass

错误的严重级别。

server

发生错误的 SQL Server 实例的名称。

errorMessage

错误消息的文本。

procedure

出现错误的存储过程的名称。

lineNumber

存储过程中包含错误的行号。

版本信息

.NET Framework

支持的版本:2.0