Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SqlInfoMessageEventArgs Class

 

Provides data for the InfoMessage event.

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

System.Object
  System.EventArgs
    System.Data.SqlClient.SqlInfoMessageEventArgs

public sealed class SqlInfoMessageEventArgs : EventArgs

NameDescription
System_CAPS_pubpropertyErrors

Gets the collection of warnings sent from the server.

System_CAPS_pubpropertyMessage

Gets the full text of the error sent from the database.

System_CAPS_pubpropertySource

Gets the name of the object that generated the error.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Retrieves a string representation of the InfoMessage event.(Overrides Object.ToString().)

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.

.NET Framework
Available since 1.1

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

Return to top
Show: