Конструктор 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.