語言

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)

適用於

另請參閱