Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SystemWebSectionGroup Class
Collapse the table of content
Expand the table of content

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.)
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 the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (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.6, 4.5, 4, 3.5, 3.0, 2.0

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