SqlInfoMessageEventArgs Class
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.
Provides data for the InfoMessage event.
public ref class SqlInfoMessageEventArgs sealed : EventArgs
public sealed class SqlInfoMessageEventArgs : EventArgs
type SqlInfoMessageEventArgs = class
inherit EventArgs
Public NotInheritable Class SqlInfoMessageEventArgs
Inherits EventArgs
- Inheritance
-
SqlInfoMessageEventArgs
The InfoMessage event contains a SqlErrorCollection collection which contains the warnings sent from the server.
An InfoMessage event is generated when a SQL Server message with a severity level of 10 or less occurs.
Errors |
Gets the collection of warnings sent from the server. |
Message |
Gets the full text of the error sent from the database. |
Source |
Gets the name of the object that generated the error. |
To |
Retrieves a string representation of the InfoMessage event. |
Product | Versions |
---|---|
SqlClient .NET Core | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Framework | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |
SqlClient .NET Standard | 1.0, 1.1, 2.0, 2.1, 3.0, 3.1, 4.0, 4.1, 5.0, 5.1, 5.2 |