SystemWebSectionGroup SystemWebSectionGroup SystemWebSectionGroup SystemWebSectionGroup Class

Definition

Allows the user to programmatically access the system.web group of the configuration file. This class cannot be inherited.

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
Inheritance
SystemWebSectionGroupSystemWebSectionGroupSystemWebSectionGroupSystemWebSectionGroup

Examples

The following code example shows how to obtain the SystemWebSectionGroup object from the configuration file associated with an existing Web application. You can use this object to access the sections contained in the system.web group.


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

Remarks

The SystemWebSectionGroup class refers to the system.web group within a configuration file. You can use this type to access any of the sections contained in this group.

Constructors

SystemWebSectionGroup() SystemWebSectionGroup() SystemWebSectionGroup() SystemWebSectionGroup()

Creates a new instance of SystemWebSectionGroup.

Properties

AnonymousIdentification AnonymousIdentification AnonymousIdentification AnonymousIdentification

Gets the anonymousIdentification section.

Authentication Authentication Authentication Authentication

Gets the authentication section.

Authorization Authorization Authorization Authorization

Gets the authorization section.

BrowserCaps BrowserCaps BrowserCaps BrowserCaps

Gets the browserCaps section.

ClientTarget ClientTarget ClientTarget ClientTarget

Gets the clientTarget section.

Compilation Compilation Compilation Compilation

Gets the compilation section.

CustomErrors CustomErrors CustomErrors CustomErrors

Gets the customErrors section.

Deployment Deployment Deployment Deployment

Gets the deployment section.

DeviceFilters DeviceFilters DeviceFilters DeviceFilters

Gets the deviceFilters section.

FullTrustAssemblies FullTrustAssemblies FullTrustAssemblies FullTrustAssemblies

Gets the FullTrustAssemblies section of the configuration file.

Globalization Globalization Globalization Globalization

Gets the globalization section.

HealthMonitoring HealthMonitoring HealthMonitoring HealthMonitoring

Gets the healthMonitoring section.

HostingEnvironment HostingEnvironment HostingEnvironment HostingEnvironment

Gets the hostingEnvironment section.

HttpCookies HttpCookies HttpCookies HttpCookies

Gets the httpCookies section.

HttpHandlers HttpHandlers HttpHandlers HttpHandlers

Gets the httpHandlers section.

HttpModules HttpModules HttpModules HttpModules

Gets the httpModules section.

HttpRuntime HttpRuntime HttpRuntime HttpRuntime

Gets the httpRuntime section.

Identity Identity Identity Identity

Gets the identity section.

IsDeclarationRequired IsDeclarationRequired IsDeclarationRequired IsDeclarationRequired

Gets a value that indicates whether this ConfigurationSectionGroup object declaration is required.

(Inherited from ConfigurationSectionGroup)
IsDeclared IsDeclared IsDeclared IsDeclared

Gets a value that indicates whether this ConfigurationSectionGroup object is declared.

(Inherited from ConfigurationSectionGroup)
MachineKey MachineKey MachineKey MachineKey

Gets the machineKey section.

Membership Membership Membership Membership

Gets the membership section.

MobileControls MobileControls MobileControls MobileControls

Gets the mobileControls section.

Name Name Name Name

Gets the name property of this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
Pages Pages Pages Pages

Gets the pages section.

PartialTrustVisibleAssemblies PartialTrustVisibleAssemblies PartialTrustVisibleAssemblies PartialTrustVisibleAssemblies

Gets the PartialTrustVisibleAssemblies section of the configuration file.

ProcessModel ProcessModel ProcessModel ProcessModel

Gets the processModel section.

Profile Profile Profile Profile

Gets the profile section.

Protocols Protocols Protocols Protocols

Gets the protocols section.

RoleManager RoleManager RoleManager RoleManager

Gets the roleManager section.

SectionGroupName SectionGroupName SectionGroupName SectionGroupName

Gets the section group name associated with this ConfigurationSectionGroup.

(Inherited from ConfigurationSectionGroup)
SectionGroups SectionGroups SectionGroups SectionGroups

Gets a ConfigurationSectionGroupCollection object that contains all the ConfigurationSectionGroup objects that are children of this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
Sections Sections Sections Sections

Gets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
SecurityPolicy SecurityPolicy SecurityPolicy SecurityPolicy

Gets the securityPolicy section.

SessionState SessionState SessionState SessionState

Gets the sessionState section.

SiteMap SiteMap SiteMap SiteMap

Gets the siteMap section.

Trace Trace Trace Trace

Gets the trace section.

Trust Trust Trust Trust

Gets the trust section.

Type Type Type Type

Gets or sets the type for this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
UrlMappings UrlMappings UrlMappings UrlMappings

Gets the urlMappings section.

WebControls WebControls WebControls WebControls

Gets the webControls section.

WebParts WebParts WebParts WebParts

Gets the webParts section.

WebServices WebServices WebServices WebServices

Gets the webServices section.

XhtmlConformance XhtmlConformance XhtmlConformance XhtmlConformance

Gets the xhtmlConformance section.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ForceDeclaration() ForceDeclaration() ForceDeclaration() ForceDeclaration()

Forces the declaration for this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
ForceDeclaration(Boolean) ForceDeclaration(Boolean) ForceDeclaration(Boolean) ForceDeclaration(Boolean)

Forces the declaration for this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerializeSectionGroupInTargetVersion(FrameworkName) ShouldSerializeSectionGroupInTargetVersion(FrameworkName) ShouldSerializeSectionGroupInTargetVersion(FrameworkName) ShouldSerializeSectionGroupInTargetVersion(FrameworkName)

Indicates whether the current ConfigurationSectionGroup instance should be serialized when the configuration object hierarchy is serialized for the specified target version of the .NET Framework.

(Inherited from ConfigurationSectionGroup)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to