ConfigurationElementCollection Class
IIS 7.0
Represents a collection of configuration elements.
System..::..Object
Microsoft.Web.Administration..::..ConfigurationElement
Microsoft.Web.Administration..::..ConfigurationElementCollectionBase<(Of <(<'ConfigurationElement>)>)>
Microsoft.Web.Administration..::..ConfigurationElementCollection
Microsoft.Web.Administration..::..ConfigurationElement
Microsoft.Web.Administration..::..ConfigurationElementCollectionBase<(Of <(<'ConfigurationElement>)>)>
Microsoft.Web.Administration..::..ConfigurationElementCollection
Assembly: Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
The ConfigurationElementCollection type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ConfigurationElementCollection | Initializes a new instance of the ConfigurationElementCollection class. |
| Name | Description | |
|---|---|---|
![]() | AllowsAdd | Gets a value indicating whether an add element name is defined in the current collection schema. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | AllowsClear | Gets a value indicating whether a clear element name is defined in the current collection schema. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | AllowsRemove | Gets a value indicating whether a remove element name is defined in the current collection schema. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | Attributes | Gets a configuration attribute collection that contains the list of attributes for this element. (Inherited from ConfigurationElement.) |
![]() | ChildElements | Gets all the child elements of the current element. (Inherited from ConfigurationElement.) |
![]() | Count | Gets the number of items in the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | ElementTagName | Gets the XML tag name of the current element. (Inherited from ConfigurationElement.) |
![]() | IsLocallyStored | Gets a value indicating whether the configuration element is stored in a particular configuration file. (Inherited from ConfigurationElement.) |
![]() | Item[([(String])]) | Gets or sets an attribute with the specified name. (Inherited from ConfigurationElement.) |
![]() | Item[([(Int32])]) | Gets a configuration element at the specified index. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | Methods | Gets a collection of methods for the configuration element. (Inherited from ConfigurationElement.) |
![]() | RawAttributes | Gets the raw attribute names and values for the current configuration element. (Inherited from ConfigurationElement.) |
![]() | Schema | Gets the schema that describes the configuration element collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
| Name | Description | |
|---|---|---|
![]() | Add | Adds a configuration element to the end of the current collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | AddAt | Adds a configuration element to the current collection at the specified index. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | Clear | Clears all configuration elements from the current collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | CreateElement()()()() | Creates a new child element for the current collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | CreateElement(String) | Creates a new child element by using the specified name. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | CreateNewElement | Creates a new element for the current collection. (Overrides ConfigurationElementCollectionBase<(Of <(<'T>)>)>..::..CreateNewElement(String).) |
![]() | Delete | (Inherited from ConfigurationElement.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetAttribute | Returns a ConfigurationAttribute object that represents the requested attribute. (Inherited from ConfigurationElement.) |
![]() | GetAttributeValue | Returns the value of the specified attribute. (Inherited from ConfigurationElement.) |
![]() | GetChildElement(String) | Returns a child element that is under the current configuration element and has the specified name. (Inherited from ConfigurationElement.) |
![]() | GetChildElement(String, Type) | Returns a child element that is under the current configuration element and has the specified name and type. (Inherited from ConfigurationElement.) |
![]() | GetCollection()()()() | Returns the default collection for the current configuration element. (Inherited from ConfigurationElement.) |
![]() | GetCollection(String) | Returns all configuration elements that belong to the current configuration element. (Inherited from ConfigurationElement.) |
![]() | GetCollection(Type) | Returns the configuration element that has the specified type and is under the current configuration element. (Inherited from ConfigurationElement.) |
![]() | GetCollection(String, Type) | Returns the configuration element that has the specified name and type and is under the current configuration element. (Inherited from ConfigurationElement.) |
![]() | GetEnumerator | Returns an enumerator that iterates through a collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetMetadata | Returns metadata values from the element schema. (Inherited from ConfigurationElement.) |
![]() | GetType | (Inherited from Object.) |
![]() | IndexOf | Determines the index of an element in the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Remove | Removes the first occurrence of an element from the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | RemoveAt | Removes the element at the specified index of the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() | SetAttributeValue | Sets the value of the specified attribute. (Inherited from ConfigurationElement.) |
![]() | SetMetadata | Sets metadata values from the element schema. (Inherited from ConfigurationElement.) |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection..::..CopyTo | Copies the elements of the collection to an array, starting at a particular array index. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() ![]() | ICollection..::..Count | Gets the number of elements in the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() ![]() | IEnumerable..::..GetEnumerator | Returns an enumerator that iterates through the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() ![]() | ICollection..::..IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread safe). (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
![]() ![]() | ICollection..::..SyncRoot | Gets an object that is used to synchronize access to the collection. (Inherited from ConfigurationElementCollectionBase<(Of <(<'T>)>)>.) |
Use the ConfigurationElement class to iterate through a collection of ConfigurationElementCollection objects.
The example shown in ConfigurationElement class retrieves a ConfigurationElementCollection object and then retrieves several properties from each element in the collection.
Community Additions
ADD
Show:

