This topic has not yet been rated - Rate this topic

SectionDefinitionCollection Class

IIS 7.0

Represents a collection of related SectionDefinition objects.

System..::..Object
  Microsoft.Web.Administration..::..SectionDefinitionCollection

Namespace:  Microsoft.Web.Administration
Assembly:  Microsoft.Web.Administration (in Microsoft.Web.Administration.dll)
public sealed class SectionDefinitionCollection : ICollection, 
	IEnumerable<SectionDefinition>, IEnumerable

The SectionDefinitionCollection type exposes the following members.

  Name Description
Public property Count Gets the number of section definitions in the collection.
Public property Item[([(Int32])]) Gets the specified section definition at the specified index.
Public property Item[([(String])]) Gets the specified section definition that has the specified name.
Top
  Name Description
Public method Add Adds a new section definition to the collection.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns a generic enumerator that iterates through the section definition collection.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove Removes the specified section definition from the collection.
Public method ToString (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method ICollection..::..CopyTo Copies the collection to an array.
Explicit interface implemetation Private method IEnumerable..::..GetEnumerator Returns an enumerator that iterates through the section definition collection.
Explicit interface implemetation Private property ICollection..::..IsSynchronized Gets a value indicating whether access to the section definition collection is synchronized (thread safe).
Explicit interface implemetation Private property ICollection..::..SyncRoot Gets an object that synchronizes access to the collection.
Top

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.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ