SqlInfoMessageEventArgs 类

定义

InfoMessage 事件提供数据。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
继承
SqlInfoMessageEventArgs

注解

InfoMessage事件包含一个SqlErrorCollection集合, 该集合包含从服务器发送的警告。The InfoMessage event contains a SqlErrorCollection collection which contains the warnings sent from the server.

当出现严重级别为10或更低的 SQL Server 消息时, 将生成事件。InfoMessageAn InfoMessage event is generated when a SQL Server message with a severity level of 10 or less occurs.

属性

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.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

检索 InfoMessage 事件的字符串表示形式。Retrieves a string representation of the InfoMessage event.

适用于

另请参阅