I have a .NET assembly (.dll) that gets loaded as a COM server into an existing process. How can I get a .config file applied to it such that ConfigurationManager.GetSection
will return the section out开发者_JAVA技巧 of the applied .config file?
You'll want to use ConfigurationManager.OpenMappedExeConfiguration. There's good code samples in the link, so I won't copy them here.
精彩评论