Module
Contents
Index 🔎︎

# GetProcessServiceManager Function

返回 ProcessServiceManager (中央 Uno ServiceManager)。

当希望使用 CreateInstanceWithArguments 来实例化一项服务时，需要使用此函数。

## 语法：

    oServiceManager = GetProcessServiceManager()

## 示例：

    oServiceManager = GetProcessServiceManager()

    oIntrospection = oServiceManager.createInstance("com.sun.star.beans.Introspection");

    ' this is the same as the following statement:

    oIntrospection = CreateUnoService("com.sun.star.beans.Introspection")