SectionDefinitionCollection Class

Definition

Represents a collection of related SectionDefinition objects.

public ref class SectionDefinitionCollection sealed : System::Collections::Generic::IEnumerable<Microsoft::Web::Administration::SectionDefinition ^>, System::Collections::ICollection
public sealed class SectionDefinitionCollection : System.Collections.Generic.IEnumerable<Microsoft.Web.Administration.SectionDefinition>, System.Collections.ICollection
type SectionDefinitionCollection = class
    interface ICollection
    interface seq<SectionDefinition>
    interface IEnumerable
Public NotInheritable Class SectionDefinitionCollection
Implements ICollection, IEnumerable(Of SectionDefinition)
Inheritance
SectionDefinitionCollection
Implements

Remarks

Use the SectionDefinitionCollection class to iterate through a collection of SectionDefinition objects. You can access this collection of objects by using the Microsoft.Web.Administration.SectionGroup.Sections property.

Properties

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.

Methods

Add(String)

Adds a new section definition to the collection.

GetEnumerator()

Returns a generic enumerator that iterates through the section definition collection.

Remove(String)

Removes the specified section definition from the collection.

Explicit Interface Implementations

ICollection.CopyTo(Array, Int32)

Copies the collection to an array.

ICollection.IsSynchronized
ICollection.SyncRoot
IEnumerable.GetEnumerator()

Returns an enumerator that iterates through the section definition collection.

Applies to