A
Ashish
hi All,
I am trying to define a section in a .net 2.0 configuration file. Turns
out that i "have" to define a type with it.
and i dont really want to create a seperate class for holding this
information so i make it of type System.Configuration.DefaultSection ...
DefaultSection exposes a property of type SectionInformation and when i
use the SectionInformation.GetRawXML() method, i get an error "This
operation does not apply at runtime."
The code is like
DefaultSection p
=(DefaultSection)ConfigurationManager.GetSection("mySection");
p.SectionInformation.GetRawXml()
any help would be appreciated !
TIA
I am trying to define a section in a .net 2.0 configuration file. Turns
out that i "have" to define a type with it.
and i dont really want to create a seperate class for holding this
information so i make it of type System.Configuration.DefaultSection ...
DefaultSection exposes a property of type SectionInformation and when i
use the SectionInformation.GetRawXML() method, i get an error "This
operation does not apply at runtime."
The code is like
DefaultSection p
=(DefaultSection)ConfigurationManager.GetSection("mySection");
p.SectionInformation.GetRawXml()
any help would be appreciated !
TIA