SystemWebSectionGroup Class
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
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)
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.
System |
Creates a new instance of SystemWebSectionGroup. |
Anonymous |
Gets the |
Authentication |
Gets the |
Authorization |
Gets the |
Browser |
Gets the |
Client |
Gets the |
Compilation |
Gets the |
Custom |
Gets the |
Deployment |
Gets the |
Device |
Gets the |
Full |
Gets the |
Globalization |
Gets the |
Health |
Gets the |
Hosting |
Gets the |
Http |
Gets the |
Http |
Gets the |
Http |
Gets the |
Http |
Gets the |
Identity |
Gets the |
Is |
Gets a value that indicates whether this ConfigurationSectionGroup object declaration is required. (Inherited from ConfigurationSectionGroup) |
Is |
Gets a value that indicates whether this ConfigurationSectionGroup object is declared. (Inherited from ConfigurationSectionGroup) |
Machine |
Gets the |
Membership |
Gets the |
Mobile |
Obsolete.
Gets the |
Name |
Gets the name property of this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
Pages |
Gets the |
Partial |
Gets the |
Process |
Gets the |
Profile |
Gets the |
Protocols |
Gets the |
Role |
Gets the |
Section |
Gets the section group name associated with this ConfigurationSectionGroup. (Inherited from ConfigurationSectionGroup) |
Section |
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) |
Security |
Gets the |
Session |
Gets the |
Site |
Gets the |
Trace |
Gets the |
Trust |
Gets the |
Type |
Gets or sets the type for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
Url |
Gets the |
Web |
Gets the |
Web |
Gets the |
Web |
Gets the |
Xhtml |
Gets the |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Force |
Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
Force |
Forces the declaration for this ConfigurationSectionGroup object. (Inherited from ConfigurationSectionGroup) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Should |
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) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Produto | Versões |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: