csharp System.Configuration.ElementInformation类(方法)实例源码

下面列出了csharp System.Configuration.ElementInformation 类(方法)源码代码实例,从而了解它的用法。

作者:.NET开发    项目:System.Configuratio   
static public ElementInformation
    GetElementInformation()
{

    // Get the current configuration file.
    System.Configuration.Configuration config =
            ConfigurationManager.OpenExeConfiguration(
            ConfigurationUserLevel.None);

    // Get the section.
    UrlsSection section =
        (UrlsSection)config.GetSection("MyUrls");

    // Get the element.
    UrlConfigElement url = section.Simple;

    ElementInformation eInfo =
        url.ElementInformation;

    return eInfo;
}


问题


面经


文章

微信
公众号

扫码关注公众号