This documentation is archived and is not being maintained.

SqlInfoMessageEventArgs Class

Provides data for the InfoMessage event. This class cannot be inherited.

For a list of all members of this type, see SqlInfoMessageEventArgs Members.


[Visual Basic]
NotInheritable Public Class SqlInfoMessageEventArgs
   Inherits EventArgs
public sealed class SqlInfoMessageEventArgs : EventArgs
public __gc __sealed class SqlInfoMessageEventArgs : public
public class SqlInfoMessageEventArgs extends EventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


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.


Namespace: System.Data.SqlClient

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Data (in System.Data.dll)

See Also

SqlInfoMessageEventArgs Members | System.Data.SqlClient Namespace