HttpRuntimeSection Konstruktor

Definition

Initierar en ny instans av klassen med hjälp av HttpRuntimeSection standardinställningar.

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

Exempel

I följande exempel visas hur du skapar ett HttpRuntimeSection objekt.

// 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)

Gäller för

Se även