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")