Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SqlInfoMessageEventArgs Class

Definition

Namespace:
Microsoft.Data.SqlClient
Assembly:
Microsoft.Data.SqlClient.dll
Package:
Microsoft.Data.SqlClient v1.0.19269.1
Package:
Microsoft.Data.SqlClient v1.1.4
Package:
Microsoft.Data.SqlClient v2.0.1
Package:
Microsoft.Data.SqlClient v2.1.4
Package:
Microsoft.Data.SqlClient v3.0.1
Package:
Microsoft.Data.SqlClient v3.1.0
Package:
Microsoft.Data.SqlClient v4.0.1
Package:
Microsoft.Data.SqlClient v4.1.0
Package:
Microsoft.Data.SqlClient v5.0.0
Package:
Microsoft.Data.SqlClient v5.1.0
Package:
Microsoft.Data.SqlClient v5.2.0
Package:
Microsoft.Data.SqlClient v6.0.2
Package:
Microsoft.Data.SqlClient v6.1.3
Package:
Microsoft.Data.SqlClient v7.0.1
Source:
SqlInfoMessageEvent.cs
Source:
SqlInfoMessageEvent.cs
Source:
SqlInfoMessageEvent.cs

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

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

Name Description
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

Name Description
ToString()

Retrieves a string representation of the InfoMessage event.

Applies to