SystemWebSectionGroup Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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() |
Creates a new instance of SystemWebSectionGroup. |
Properties
AnonymousIdentification |
Gets the |
Authentication |
Gets the |
Authorization |
Gets the |
BrowserCaps |
Gets the |
ClientTarget |
Gets the |
Compilation |
Gets the |
CustomErrors |
Gets the |
Deployment |
Gets the |
DeviceFilters |
Gets the |
FullTrustAssemblies |
Gets the |
Globalization |
Gets the |
HealthMonitoring |
Gets the |
HostingEnvironment |
Gets the |
HttpCookies |
Gets the |
HttpHandlers |
Gets the |
HttpModules |
Gets the |
HttpRuntime |
Gets the |
Identity |
Gets the |
IsDeclarationRequired |
Gets a value that indicates whether this ConfigurationSectionGroup object declaration is required. (Inherited from ConfigurationSectionGroup) |
IsDeclared |
Gets a value that indicates whether this ConfigurationSectionGroup object is declared. (Inherited from ConfigurationSectionGroup) |
MachineKey |
Gets the |
Membership |
Gets the |
MobileControls |
Obsolete.
Gets the |
Name |
Gets the name property of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
Pages |
Gets the |
PartialTrustVisibleAssemblies |
Gets the |
ProcessModel |
Gets the |
Profile |
Gets the |
Protocols |
Gets the |
RoleManager |
Gets the |
SectionGroupName |
Gets the section group name associated with this ConfigurationSectionGroup. (Inherited from ConfigurationSectionGroup) |
SectionGroups |
Gets a ConfigurationSectionGroupCollection object that contains all the ConfigurationSectionGroup objects that are children of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
Sections |
Gets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
SecurityPolicy |
Gets the |
SessionState |
Gets the |
SiteMap |
Gets the |
Trace |
Gets the |
Trust |
Gets the |
Type |
Gets or sets the type for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
UrlMappings |
Gets the |
WebControls |
Gets the |
WebParts |
Gets the |
WebServices |
Gets the |
XhtmlConformance |
Gets the |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
ForceDeclaration() |
Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
ForceDeclaration(Boolean) |
Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
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() |
Returns a string that represents the current object. (Inherited from Object) |