Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » SQL Anywhere 数据访问 API » SQL Anywhere .NET 2.0 API 参考 » iAnywhere.Data.SQLAnywhere 命名空间 (.NET 2.0) » SAConnection 类

 

InfoMessage 事件

SQL Anywhere 数据库服务器返回警告或信息性消息时发生。

语法
Visual Basic

Public Event InfoMessage As SAInfoMessageEventHandler
C#

public event SAInfoMessageEventHandler InfoMessage ;
注释

事件处理程序会收到包含与此事件有关的数据的 SaInfoMessageEventArgs 类型的参数。以下 SAaInfoMessageEventArgs 属性提供此事件所特有的信息:NativeError、Errors、Message、MessageType 和 Source。

有关详细信息,请参见关于 OleDbConnection.InfoMessage 事件的 .NET Framework 文档。

事件数据
  • MessageType   返回消息的类型。此类型可以是以下各项之一:Action、Info、Status 或 Warning。

  • Errors   返回从数据源发送的消息的集合。

  • Message   返回从数据源发送的错误的完整文本。

  • Source   返回 SQL Anywhere .NET 数据提供程序的名称。

  • NativeError   返回由数据库返回的 SQL 代码。

另请参见