SqlInfoMessageEventArgs Class
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.
Caution
Use the Microsoft.Data.SqlClient package instead.
Provides data for the InfoMessage event.
public ref class SqlInfoMessageEventArgs sealed : EventArgs
public sealed class SqlInfoMessageEventArgs : EventArgs
[System.Obsolete("Use the Microsoft.Data.SqlClient package instead.")]
public sealed class SqlInfoMessageEventArgs : EventArgs
type SqlInfoMessageEventArgs = class
inherit EventArgs
[<System.Obsolete("Use the Microsoft.Data.SqlClient package instead.")>]
type SqlInfoMessageEventArgs = class
inherit EventArgs
Public NotInheritable Class SqlInfoMessageEventArgs
Inherits EventArgs
- Inheritance
- Attributes
Remarks
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.
Properties
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. |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Retrieves a string representation of the InfoMessage event. |