SystemWebSectionGroup 類別

定義

允許使用者以程式方式存取 system.web 設定檔的群組。 此類別無法獲得繼承。

public ref class SystemWebSectionGroup sealed : System::Configuration::ConfigurationSectionGroup
public sealed class SystemWebSectionGroup : System.Configuration.ConfigurationSectionGroup
type SystemWebSectionGroup = class
    inherit ConfigurationSectionGroup
Public NotInheritable Class SystemWebSectionGroup
Inherits ConfigurationSectionGroup
繼承
SystemWebSectionGroup

範例

以下程式碼範例展示了如何從現有網頁應用程式所關聯的設定檔取得 SystemWebSectionGroup 物件。 你可以用這個物件來存取群組中包含的 system.web 區段。


// Get the Web application configuration.
System.Configuration.Configuration configuration =
    WebConfigurationManager.OpenWebConfiguration(
    "/aspnetTest");

// Get the <system.web> group.
SystemWebSectionGroup systemWeb =
  (SystemWebSectionGroup)configuration.GetSectionGroup("system.web");
' Get the Web application configuration.
Dim configuration As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _
"/aspnetTest")

' Get the <system.web> group.
Dim systemWeb As SystemWebSectionGroup = _
CType(configuration.GetSectionGroup( _
"system.web"), SystemWebSectionGroup)

備註

類別 SystemWebSectionGroup 指的是組態檔案中的群組 system.web 。 你可以使用此類型存取本群組中的任何章節。

建構函式

名稱 Description
SystemWebSectionGroup()

建立一個新的 實例。SystemWebSectionGroup

屬性

名稱 Description
AnonymousIdentification

拿到那 anonymousIdentification 個區域。

Authentication

拿到那 authentication 個區域。

Authorization

拿到那 authorization 個區域。

BrowserCaps

拿到那 browserCaps 個區域。

ClientTarget

拿到那 clientTarget 個區域。

Compilation

拿到那 compilation 個區域。

CustomErrors

拿到那 customErrors 個區域。

Deployment

拿到那 deployment 個區域。

DeviceFilters

拿到那 deviceFilters 個區域。

FullTrustAssemblies

取得設定檔的那 FullTrustAssemblies 個區段。

Globalization

拿到那 globalization 個區域。

HealthMonitoring

拿到那 healthMonitoring 個區域。

HostingEnvironment

拿到那 hostingEnvironment 個區域。

HttpCookies

拿到那 httpCookies 個區域。

HttpHandlers

拿到那 httpHandlers 個區域。

HttpModules

拿到那 httpModules 個區域。

HttpRuntime

拿到那 httpRuntime 個區域。

Identity

拿到那 identity 個區域。

IsDeclarationRequired

會取得一個值,表示是否需要這個 ConfigurationSectionGroup 物件宣告。

(繼承來源 ConfigurationSectionGroup)
IsDeclared

會得到一個值,表示該 ConfigurationSectionGroup 物件是否被宣告。

(繼承來源 ConfigurationSectionGroup)
MachineKey

拿到那 machineKey 個區域。

Membership

拿到那 membership 個區域。

MobileControls
已淘汰.

拿到那 mobileControls 個區域。

Name

取得此 ConfigurationSectionGroup 物件的名稱屬性。

(繼承來源 ConfigurationSectionGroup)
Pages

拿到那 pages 個區域。

PartialTrustVisibleAssemblies

取得設定檔的那 PartialTrustVisibleAssemblies 個區段。

ProcessModel

拿到那 processModel 個區域。

Profile

拿到那 profile 個區域。

Protocols

拿到那 protocols 個區域。

RoleManager

拿到那 roleManager 個區域。

SectionGroupName

會取得與此 ConfigurationSectionGroup相關聯的區段群組名稱。

(繼承來源 ConfigurationSectionGroup)
SectionGroups

取得ConfigurationSectionGroupCollection一個包含該ConfigurationSectionGroup物件所有ConfigurationSectionGroup子物件的物件。

(繼承來源 ConfigurationSectionGroup)
Sections

取得ConfigurationSectionCollection包含該ConfigurationSection物件中所有ConfigurationSectionGroup物件的物件。

(繼承來源 ConfigurationSectionGroup)
SecurityPolicy

拿到那 securityPolicy 個區域。

SessionState

拿到那 sessionState 個區域。

SiteMap

拿到那 siteMap 個區域。

Trace

拿到那 trace 個區域。

Trust

拿到那 trust 個區域。

Type

取得或設定這個 ConfigurationSectionGroup 物件的型別。

(繼承來源 ConfigurationSectionGroup)
UrlMappings

拿到那 urlMappings 個區域。

WebControls

拿到那 webControls 個區域。

WebParts

拿到那 webParts 個區域。

WebServices

拿到那 webServices 個區域。

XhtmlConformance

拿到那 xhtmlConformance 個區域。

方法

名稱 Description
Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
ForceDeclaration()

強制為此 ConfigurationSectionGroup 物件宣告。

(繼承來源 ConfigurationSectionGroup)
ForceDeclaration(Boolean)

強制為此 ConfigurationSectionGroup 物件宣告。

(繼承來源 ConfigurationSectionGroup)
GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetType()

取得目前實例的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
ShouldSerializeSectionGroupInTargetVersion(FrameworkName)

指示當前ConfigurationSectionGroup實例是否應該序列化,當配置物件階層序列化以符合指定目標版本.NET框架時。

(繼承來源 ConfigurationSectionGroup)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於