Name

SqlInfoMessageEventArgs

Synopsis

This class provides data to the event handler for the SqlConnection.InfoMessage event. It provides a collection of warnings or messages in the SqlErrorCollection object as SqlError instances. In addition, the Message property wraps the SqlError.Message property, and the Source property wraps the SqlError.Source property.

public sealed class SqlInfoMessageEventArgs : EventArgs {

// Public Instance Properties

   public SqlErrorCollection Errors{get; } 

   public string Message{get; } 

   public string Source{get; } 

// Public Instance Methods

   public override string ToString( );              // overrides object

}

Hierarchy

System.Object System.EventArgs SqlInfoMessageEventArgs

Passed To

SqlInfoMessageEventHandler.{BeginInvoke( ), Invoke( )}

Get ADO.NET in a Nutshell now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.