语言

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

示例

下面的代码示例演示如何从与现有 Web 应用程序关联的配置文件中获取 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 配置文件中的组。 可以使用此类型访问此组中包含的任何部分。

构造函数

名称 说明
SystemWebSectionGroup()

创建 SystemWebSectionGroup的新实例。

属性

名称 说明
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 对象的 name 属性。

(继承自 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 。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
ForceDeclaration()

强制此 ConfigurationSectionGroup 对象的声明。

(继承自 ConfigurationSectionGroup)
ForceDeclaration(Boolean)

强制此 ConfigurationSectionGroup 对象的声明。

(继承自 ConfigurationSectionGroup)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type。

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ShouldSerializeSectionGroupInTargetVersion(FrameworkName)

指示在为 .NET Framework 的指定目标版本序列化配置对象层次结构时,是否应序列化当前的 ConfigurationSectionGroup 实例。

(继承自 ConfigurationSectionGroup)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于