共用方式為


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)

適用於

另請參閱