语言

HttpRuntimeSection 构造函数

定义

使用默认设置初始化类的新实例 HttpRuntimeSection 。

public:
 HttpRuntimeSection();
public HttpRuntimeSection();
Public Sub New ()

示例

以下示例演示如何创建对象 HttpRuntimeSection 。

// Get the section related object.
HttpRuntimeSection configSection =
  (HttpRuntimeSection)config.GetSection("system.web/httpRuntime");
' Get the section related object.
Dim configSection As System.Web.Configuration.HttpRuntimeSection = _
 CType(config.GetSection("system.web/httpRuntime"), _
 System.Web.Configuration.HttpRuntimeSection)

适用于

另请参阅