Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SystemWebSectionGroup Class

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

System.Object
  System.Configuration.ConfigurationSectionGroup
    System.Web.Configuration.SystemWebSectionGroup

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)
public sealed class SystemWebSectionGroup : ConfigurationSectionGroup

The SystemWebSectionGroup type exposes the following members.

  NameDescription
Public methodSystemWebSectionGroupInfrastructure. Creates a new instance of SystemWebSectionGroup.
Top
  NameDescription
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.
Top
  NameDescription
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.)
Top

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 =
                WebConfigurationManager.OpenWebConfiguration(
                "/aspnetTest");

            // Get the <system.web> group.
            SystemWebSectionGroup systemWeb =
              (SystemWebSectionGroup)configuration.GetSectionGroup("system.web");

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Show:
© 2014 Microsoft. All rights reserved.