ConfigurationElement Class
Represents an element in a configuration file.
Assembly: Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
Microsoft.Web.Administration.ConfigurationElement
Microsoft.Web.Administration.Application
Microsoft.Web.Administration.ApplicationDefaults
Microsoft.Web.Administration.ApplicationDomain
Microsoft.Web.Administration.ApplicationPool
Microsoft.Web.Administration.ApplicationPoolCpu
Microsoft.Web.Administration.ApplicationPoolDefaults
Microsoft.Web.Administration.ApplicationPoolFailure
Microsoft.Web.Administration.ApplicationPoolPeriodicRestart
Microsoft.Web.Administration.ApplicationPoolProcessModel
Microsoft.Web.Administration.ApplicationPoolRecycling
Microsoft.Web.Administration.Binding
Microsoft.Web.Administration.ConfigurationElementCollectionBase(Of T)
Microsoft.Web.Administration.ConfigurationSection
Microsoft.Web.Administration.CustomLogField
Microsoft.Web.Administration.Request
Microsoft.Web.Administration.Schedule
Microsoft.Web.Administration.Site
Microsoft.Web.Administration.SiteDefaults
Microsoft.Web.Administration.SiteLimits
Microsoft.Web.Administration.SiteLogFile
Microsoft.Web.Administration.SiteTraceFailedRequestsLogging
Microsoft.Web.Administration.VirtualDirectory
Microsoft.Web.Administration.VirtualDirectoryDefaults
Microsoft.Web.Administration.WorkerProcess
| Name | Description | |
|---|---|---|
![]() | ConfigurationElement() | Initializes a new instance of the ConfigurationElement class. |
| Name | Description | |
|---|---|---|
![]() | Attributes | Gets a configuration attribute collection that contains the list of attributes for this element. |
![]() | ChildElements | Gets all the child elements of the current element. |
![]() | IsLocallyStored | Gets a value indicating whether the configuration element is stored in a particular configuration file. |
![]() | Item(String) | Gets or sets an attribute with the specified name. |
![]() | Methods | Gets a collection of methods for the configuration element. |
![]() | Schema | Gets the schema for the current element. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetAttribute(String) | Returns a ConfigurationAttribute object that represents the requested attribute. |
![]() | GetAttributeValue(String) | Returns the value of the specified attribute. |
![]() | GetChildElement(String) | Returns a child element that is under the current configuration element and has the specified name. |
![]() | GetChildElement(String, Type) | Returns a child element that is under the current configuration element and has the specified name and type. |
![]() | GetCollection() | Returns the default collection for the current configuration element. |
![]() | GetCollection(String) | Returns all configuration elements that belong to the current configuration element. |
![]() | GetCollection(String, Type) | Returns the configuration element that has the specified name and type and is under the current configuration element. |
![]() | GetCollection(Type) | Returns the configuration element that has the specified type and is under the current configuration element. |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetMetadata(String) | Returns metadata values from the element schema. |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | SetAttributeValue(String, Object) | Sets the value of the specified attribute. |
![]() | SetMetadata(String, Object) | Sets metadata values from the element schema. |
![]() | ToString() | (Inherited from Object.) |
This is the base class for many configuration entities, including configuration sections, collection entries, and nested elements in a section.
The following example implements several of the methods and properties of the ConfigurationElement class. This example obtains a ConfigurationSection object for the moduleProvider section and gets a ConfigurationElementCollection from that section. This example iterates through each ConfigurationElement of the retrieved collection.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


