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 NotInheritable Class SystemWebSectionGroup
	Inherits ConfigurationSectionGroup
Dim instance As SystemWebSectionGroup

public final class SystemWebSectionGroup extends ConfigurationSectionGroup
public final class SystemWebSectionGroup extends ConfigurationSectionGroup
Not applicable.

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.
Dim configuration As System.Configuration.Configuration = _
WebConfigurationManager.OpenWebConfiguration( _

' Get the <system.web> group.
Dim systemWeb As SystemWebSectionGroup = _
CType(configuration.GetSectionGroup( _
"system.web"), SystemWebSectionGroup)


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

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2015 Microsoft