Breyta

Deila með


SystemWebSectionGroup Class

Definition

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
SystemWebSectionGroup

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 anonymousIdentification section.

Authentication

Gets the authentication section.

Authorization

Gets the authorization section.

BrowserCaps

Gets the browserCaps section.

ClientTarget

Gets the clientTarget section.

Compilation

Gets the compilation section.

CustomErrors

Gets the customErrors section.

Deployment

Gets the deployment section.

DeviceFilters

Gets the deviceFilters section.

FullTrustAssemblies

Gets the FullTrustAssemblies section of the configuration file.

Globalization

Gets the globalization section.

HealthMonitoring

Gets the healthMonitoring section.

HostingEnvironment

Gets the hostingEnvironment section.

HttpCookies

Gets the httpCookies section.

HttpHandlers

Gets the httpHandlers section.

HttpModules

Gets the httpModules section.

HttpRuntime

Gets the httpRuntime section.

Identity

Gets the identity section.

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 machineKey section.

Membership

Gets the membership section.

MobileControls
Obsolete.

Gets the mobileControls section.

Name

Gets the name property of this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
Pages

Gets the pages section.

PartialTrustVisibleAssemblies

Gets the PartialTrustVisibleAssemblies section of the configuration file.

ProcessModel

Gets the processModel section.

Profile

Gets the profile section.

Protocols

Gets the protocols section.

RoleManager

Gets the roleManager section.

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 securityPolicy section.

SessionState

Gets the sessionState section.

SiteMap

Gets the siteMap section.

Trace

Gets the trace section.

Trust

Gets the trust section.

Type

Gets or sets the type for this ConfigurationSectionGroup object.

(Inherited from ConfigurationSectionGroup)
UrlMappings

Gets the urlMappings section.

WebControls

Gets the webControls section.

WebParts

Gets the webParts section.

WebServices

Gets the webServices section.

XhtmlConformance

Gets the xhtmlConformance section.

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)

Applies to