ServerMessageEventArgs(SqlErrorCollection, IResultInfo) Constructor

Definition

Initializes a new instance of the ServerMessageEventArgs class.

public:
 ServerMessageEventArgs(System::Data::SqlClient::SqlErrorCollection ^ sqlErrors, Microsoft::SqlServer::Management::MultiServerConnection::IResultInfo ^ sourceInfo);
public ServerMessageEventArgs (System.Data.SqlClient.SqlErrorCollection sqlErrors, Microsoft.SqlServer.Management.MultiServerConnection.IResultInfo sourceInfo);
new Microsoft.SqlServer.Management.MultiServerConnection.ServerMessageEventArgs : System.Data.SqlClient.SqlErrorCollection * Microsoft.SqlServer.Management.MultiServerConnection.IResultInfo -> Microsoft.SqlServer.Management.MultiServerConnection.ServerMessageEventArgs
Public Sub New (sqlErrors As SqlErrorCollection, sourceInfo As IResultInfo)

Parameters

sqlErrors
SqlErrorCollection

A SqlErrorCollection object that contains the messages that were returned by the server.

sourceInfo
IResultInfo

An IResultInfo object that contains information about the Transact-SQL execution result that caused the error.

Applies to