SectionDefinitionCollection Class
IIS 7.0
Represents a collection of related SectionDefinition objects.
Namespace:
Microsoft.Web.Administration
Assembly: Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
The SectionDefinitionCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Count | Gets the number of section definitions in the collection. |
|
Item[([(Int32])]) | Gets the specified section definition at the specified index. |
|
Item[([(String])]) | Gets the specified section definition that has the specified name. |
| Name | Description | |
|---|---|---|
|
Add | Adds a new section definition to the collection. |
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetEnumerator | Returns a generic enumerator that iterates through the section definition collection. |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
MemberwiseClone | (Inherited from Object.) |
|
Remove | Removes the specified section definition from the collection. |
|
ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
ICollection..::..CopyTo | Copies the collection to an array. |
|
IEnumerable..::..GetEnumerator | Returns an enumerator that iterates through the section definition collection. |
|
ICollection..::..IsSynchronized | Gets a value indicating whether access to the section definition collection is synchronized (thread safe). |
|
ICollection..::..SyncRoot | Gets an object that synchronizes access to the collection. |
Use the SectionDefinitionCollection class to iterate through a collection of SectionDefinition objects. You can access this collection of objects by using the SectionGroup..::..Sections property.