This documentation is archived and is not being maintained.

SystemWebSectionGroup Class

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


Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

public sealed class SystemWebSectionGroup : ConfigurationSectionGroup

The SystemWebSectionGroup type exposes the following members.

Public methodSystemWebSectionGroupInfrastructure. Creates a new instance of SystemWebSectionGroup.

Public propertyAnonymousIdentificationGets the anonymousIdentification section.
Public propertyAuthenticationGets the authentication section.
Public propertyAuthorizationGets the authorization section.
Public propertyBrowserCapsGets the browserCaps section.
Public propertyClientTargetGets the clientTarget section.
Public propertyCompilationGets the compilation section.
Public propertyCustomErrorsGets the customErrors section.
Public propertyDeploymentGets the deployment section.
Public propertyDeviceFiltersGets the deviceFilters section.
Public propertyFullTrustAssembliesGets the FullTrustAssemblies section of the configuration file.
Public propertyGlobalizationGets the globalization section.
Public propertyHealthMonitoringGets the healthMonitoring section.
Public propertyHostingEnvironmentGets the hostingEnvironment section.
Public propertyHttpCookiesGets the httpCookies section.
Public propertyHttpHandlersGets the httpHandlers section.
Public propertyHttpModulesGets the httpModules section.
Public propertyHttpRuntimeGets the httpRuntime section.
Public propertyIdentityGets the identity section.
Public propertyIsDeclarationRequiredGets a value that indicates whether this ConfigurationSectionGroup object declaration is required. (Inherited from ConfigurationSectionGroup.)
Public propertyIsDeclaredGets a value that indicates whether this ConfigurationSectionGroup object is declared. (Inherited from ConfigurationSectionGroup.)
Public propertyMachineKeyGets the machineKey section.
Public propertyMembershipGets the membership section.
Public propertyMobileControls Obsolete. Gets the mobileControls section.
Public propertyNameGets the name property of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public propertyPagesGets the pages section.
Public propertyPartialTrustVisibleAssembliesGets the PartialTrustVisibleAssemblies section of the configuration file.
Public propertyProcessModelGets the processModel section.
Public propertyProfileGets the profile section.
Public propertyProtocolsGets the protocols section.
Public propertyRoleManagerGets the roleManager section.
Public propertySectionGroupNameGets the section group name associated with this ConfigurationSectionGroup. (Inherited from ConfigurationSectionGroup.)
Public propertySectionGroupsGets a ConfigurationSectionGroupCollection object that contains all the ConfigurationSectionGroup objects that are children of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public propertySectionsGets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public propertySecurityPolicyGets the securityPolicy section.
Public propertySessionStateGets the sessionState section.
Public propertySiteMapGets the siteMap section.
Public propertyTraceGets the trace section.
Public propertyTrustGets the trust section.
Public propertyTypeGets or sets the type for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public propertyUrlMappingsGets the urlMappings section.
Public propertyWebControlsGets the webControls section.
Public propertyWebPartsGets the webParts section.
Public propertyWebServicesGets the webServices section.
Public propertyXhtmlConformanceGets the xhtmlConformance section.

Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodForceDeclaration()Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public methodForceDeclaration(Boolean)Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodShouldSerializeSectionGroupInTargetVersionIndicates 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.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

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.

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 =

            // Get the <system.web> group.
            SystemWebSectionGroup systemWeb =

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.