WebConfigurationManager 类

定义

提供对 Web 应用程序的配置文件的访问。

public ref class WebConfigurationManager abstract sealed
public static class WebConfigurationManager
type WebConfigurationManager = class
Public Class WebConfigurationManager
继承
WebConfigurationManager

方法

GetSection(HttpContext, String)

从应用程序的配置文件中检索与指定上下文相关的指定配置节。

GetSection(HttpContext, String, Type)

使用与指定上下文相关的应用程序配置文件中的指定配置节类型检索指定的配置节。

GetSection(String)

从当前应用程序的配置文件中检索指定的配置节。

GetSection(String, String, String)

使用网站名称、虚拟路径和节路径检索指定的配置节。

GetSection(String, String, String, Type)

使用网站名称、虚拟路径、节路径和运行时类型检索指定的配置节。

适用于