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

SQL Anywhere 11.0.1 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » UltraLite C++ API 参考 » UltraLite_Connection_iface 类

 

CreateNotificationQueue 函数

创建此连接的事件通知队列。

语法
bool UltraLite_Connection_iface::CreateNotificationQueue(
  const ULValue & name,
  const ULValue & parameters
)
参数
  • name   用于新队列的名称。

  • parameters   创建参数;目前未使用,设置为 NULL。

注释

队列名的使用范围仅限于每个连接,所以不同的连接可以创建具有相同名称的队列。发送事件通知时,数据库中具有匹配名称的所有队列都接收通知(单独实例)。名称不区分大小写。如果没指定任何队列,则调用RegisterForEvent 函数时按需为每个连接创建缺省队列。如果名称已存在或无效,则调用失败并出现错误。

另请参见