AdministrationModuleCollection Class

AdministrationModuleCollection Class

IIS 7.0
 

Represents a collection of administration modules.

Namespace:   Microsoft.Web.Management.Server
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)

System.Object
  Microsoft.Web.Management.Server.AdministrationModuleCollection

public sealed class AdministrationModuleCollection : IEnumerable<AdministrationModule>, 
	IEnumerable

NameDescription
System_CAPS_pubpropertyCount

Gets the number of elements in the administration module collection.

System_CAPS_pubpropertyItem[Int32]

Gets the administration module at the specified index location in the collection.

System_CAPS_pubpropertyItem[String]

Gets the AdministrationModule object that has the specified name from the collection.

NameDescription
System_CAPS_pubmethodAdd(String)

Adds the administration module that has the specified name to the collection.

System_CAPS_pubmethodClear()

Clears all the AdministrationModule objects from the current collection.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns a generic enumerator that iterates through the administration module collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemove(String)

Deletes the specified administration module from the collection.

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Returns an enumerator that iterates through the administration module collection.

The <modules> section of the Administration.config file contains the collection of AdministrationModule objects.

This collection represents all AdministrationModule objects that are available at the site or application level. Use the AdministrationModuleCollection object to iterate through a collection of AdministrationModule objects.

Modifying the collection does not modify the Administration.config file.

The following example retrieves an AdministrationModuleCollection object from a site and displays each AdministrationModule object in the collection. In addition, the example implements the Item and Count properties of the AdministrationModuleCollection class.

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

Return to top
Show:
© 2016 Microsoft