ServerMessageEventArgs(SqlErrorCollection, IResultInfo) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.