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

SQL Anywhere 12.0.0 (中文) » QAnywhere » QAnywhere 参考 » 消息标头和属性 » 消息属性

 

自定义消息属性

QAnywhere 允许使用 C++、Java 或 .NET API 定义消息属性。自定义消息属性允许创建与对象关联的名称值对。例如:

msg.SetStringProperty("Product", "widget");
msg.SetFloatProperty("Price",1.00);
msg.SetIntProperty("Quantity",10);

消息属性名称不区分大小写。可以使用字母、数字和下划线序列,但第一个字符必须是字母。以下名称将被保留,不能用作消息属性名: