SqlInfoMessageEventArgs Class
Collapse the table of content
Expand the table of content

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.

Universal Windows Platform
Available since 10
.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:
© 2016 Microsoft