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 C++ API 参考 » QAManagerBase 类

 

setProperty 函数

语法
qa_bool QAManagerBase::setProperty(
  qa_const_string name,
  qa_const_string value
)
参数
  • name   预定义或自定义 QAnywhere Manager 配置属性名称。

  • value   QAnywhere Manager 配置属性值。

注释

用于通过编程方式设置 QAnywhere Manager 配置属性。

可以使用此方法通过指定属性名称和值来替换缺省 QAnywhere Manager 配置属性。

有关 QAnywhere Manager 配置属性的列表,请参见QAnywhere Manager 配置属性

还可以使用属性文件和 createQAManager 方法设置 QAnywhere Manager 配置属性。

有关详细信息,请参见在文件中设置 QAnywhere Manager 配置属性

注意:调用 open 方法前,必须设置必需的属性。

返回值

当且仅当操作成功时返回 true。