Export (0) Print
Expand All

SectionDefinitionCollection Class

Represents a collection of related SectionDefinition objects.


Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)

public ref class SectionDefinitionCollection sealed : ICollection, 
	IEnumerable<SectionDefinition^>, IEnumerable

The SectionDefinitionCollection type exposes the following members.

Public propertyCountGets the number of section definitions in the collection.
Public propertyItem[([(Int32])])Gets the specified section definition at the specified index.
Public propertyItem[([(String])])Gets the specified section definition that has the specified name.

Public methodAddAdds a new section definition to the collection.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns a generic enumerator that iterates through the section definition collection.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveRemoves the specified section definition from the collection.
Public methodToString (Inherited from Object.)

Explicit interface implemetationPrivate methodICollection..::..CopyToCopies the collection to an array.
Explicit interface implemetationPrivate methodIEnumerable..::..GetEnumeratorReturns an enumerator that iterates through the section definition collection.
Explicit interface implemetationPrivate propertyICollection..::..IsSynchronizedGets a value indicating whether access to the section definition collection is synchronized (thread safe).
Explicit interface implemetationPrivate propertyICollection..::..SyncRootGets 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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2014 Microsoft