Delen via


SqlInfoMessageEventArgs Class

Definition

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

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

ToString()

Retrieves a string representation of the InfoMessage event.

Applies to