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

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere 属性 » 客户端消息存储库属性

 

枚举客户端消息存储库属性

QAnywhere .NET、C++ 和 Java API 可以提供预定义和自定义客户端消息存储库属性的枚举。

.NET 示例

请参见GetStorePropertyNames 方法

// qaManager is a QAManager instance.
IEnumerator propertyNames = qaManager.GetStorePropertyNames();
C++ 示例

请参见beginEnumStorePropertyNames 函数

// qaManager is a QAManager instance.
qa_store_property_enum_handle handle = qaManager->beginEnumStorePropertyNames();
qa_char propertyName[256];

if( handle != qa_null ) {
    while(qaManager->nextStorePropertyName(handle, propertyName, 255) != -1) {
        // Do something with the message store property name.
    }
    // Message store properties cannot be set after 
    // the beginEnumStorePropertyNames call
    // and before the endEnumStorePropertyNames call.
    qaManager->endEnumStorePropertyNames(handle);
}
Java 示例

请参见getStorePropertyNames 方法

// qaManager is a QAManager instance.
Enumeration propertyNames = qaManager.getStorePropertyNames();