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

SQL Anywhere 11.0.1 (中文) » MobiLink - 服务器管理 » MobiLink 服务器 API » 使用 Java 语言编写同步脚本 » 用于 Java 的 MobiLink 服务器 API 参考 » ServerContext 接口

 

getProperties 方法

语法
public java.util.Properties getProperties(
   java.lang.String component,
   java.lang.String set )
注释

返回与给定组件和属性集关联的一组属性。这些属性存储在 MobiLink 系统表 ml_property 中。

参数
  • component   组件。

  • set   属性集。

返回值

一组属性(可能为空)。

另请参见
示例

以下代码列出了所有 ServerContext 的属性。

import java.util.*;
// ServerContext serverContext;
// PrintStream out
Properties prop = serverContext.getProperties();
prop.list(out);