2012-02-16 42 views
2

樣品的編號:如何使用C#連接到Documentum並使用Emc.Documentum.FS.Runtime而不使用Module.info標籤的app.config?使用的app.config

ContextFactory contextFactory = ContextFactory.Instance; 
IServiceContext serviceContext = contextFactory.NewContext(); 

的app.config部我想在代碼中設置具有API,而不是直接讀取。

<Emc.Documentum> 
    <FS> 
     <ConfigObject type="Emc.Documentum.FS.Runtime.Impl.Configuration.ConfigObject, Emc.Documentum.FS.Runtime" 
     defaultModuleName="core" registryProviderModuleName="core" requireSignedUcfJars="true"> 
     <ModuleInfo name="core" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/> 
     <ModuleInfo name="search" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/> 
     <ModuleInfo name="bpm" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/> 
     <ModuleInfo name="collaboration" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services" /> 
     </ConfigObject> 
    </FS> 
</Emc.Documentum> 

回答

相關問題