ServerMessageEventArgs 构造函数
Initializes a new instance of the ServerMessageEventArgs class.
命名空间: Microsoft.SqlServer.Management.MultiServerConnection
程序集: Microsoft.SqlServer.Management.MultiServerConnection(在 Microsoft.SqlServer.Management.MultiServerConnection.dll 中)
语法
声明
Public Sub New ( _
sqlErrors As SqlErrorCollection, _
sourceInfo As IResultInfo _
)
用法
Dim sqlErrors As SqlErrorCollection
Dim sourceInfo As IResultInfo
Dim instance As New ServerMessageEventArgs(sqlErrors, _
sourceInfo)
public ServerMessageEventArgs(
SqlErrorCollection sqlErrors,
IResultInfo sourceInfo
)
public:
ServerMessageEventArgs(
SqlErrorCollection^ sqlErrors,
IResultInfo^ sourceInfo
)
new :
sqlErrors:SqlErrorCollection *
sourceInfo:IResultInfo -> ServerMessageEventArgs
public function ServerMessageEventArgs(
sqlErrors : SqlErrorCollection,
sourceInfo : IResultInfo
)
参数
- sqlErrors
类型:System.Data.SqlClient. . :: . .SqlErrorCollection
A SqlErrorCollection object that contains the messages that were returned by the server.
- sourceInfo
类型:Microsoft.SqlServer.Management.MultiServerConnection. . :: . .IResultInfo
An IResultInfo object that contains information about the Transact-SQL execution result that caused the error.