IControlPanel.Pages Property

IIS 7.0

Gets the collection of items registered by a specific module.

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

ReadOnlyCollection<ModulePageInfo> Pages { get; }

Property Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<ModulePageInfo>

A constructed generic System.Collections.ObjectModel.ReadOnlyCollection<T> of ModulePageInfo objects that represent items registered by a specific module.

Each item is represented by a ModulePageInfo object.

The following example searches a module for the page that has the specified assembly name.

private static ModulePageInfo GetModulePageInfo(
    IControlPanel controlPanel, string modulePageTypeName) {
    foreach (ModulePageInfo page in controlPanel.Pages) {
        if (String.Equals(page.PageType.AssemblyQualifiedName,
            modulePageTypeName, StringComparison.OrdinalIgnoreCase)) {
            return page;

    return null;
Return to top