4
我的朋友有以下app.config。他想要得到address
的價值。怎麼做?如何從app.config獲取此配置值?
<configuration>
<system.serviceModel>
...
<client>
<endpoint address="http://ldo:8080/LLService" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_ILLService" contract="LLServiceReference.ILLService"
name="WSHttpBinding_ILLService">
<identity>
<userPrincipalName value="[email protected]" />
</identity>
</endpoint>
</client>
</system.serviceModel>
...
</configuration>
什麼是我們應該傳遞到ServiceModelSectionGroup.GetSectionGroup方法的價值? – 5YrsLaterDBA 2010-07-09 16:26:23
它可能來自'ConfigurationManager.OpenExeConfiguration' – 2010-07-09 17:28:16