Export (0) Print
Expand All

ModulePageInfo Class

IIS 7.0

Represents a page of user interface for a module.

System..::..Object
  Microsoft.Web.Management.Client..::..ModulePageInfo

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

[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public sealed class ModulePageInfo

The ModulePageInfo type exposes the following members.

  NameDescription
Public methodModulePageInfo(Module, Type, String)Initializes a new instance of the ModulePageInfo class, using the specified module, type, and title.
Public methodModulePageInfo(Module, Type, String, String)Initializes a new instance of the ModulePageInfo class, using the specified module, type, title, and description.
Public methodModulePageInfo(Module, Type, String, String, Object, Object)Initializes a new instance of the ModulePageInfo class, using the specified module, type, title, description, and images.
Public methodModulePageInfo(Module, Type, String, String, Object, Object, String)Initializes a new instance of the ModulePageInfo class, using the specified module, type, title, description, images, and long description.
Top

  NameDescription
Public propertyAssociatedModuleGets the module associated with the page.
Public propertyDescriptionGets the description of the page.
Public propertyIsEnabledGets a value indicating whether the associated module is enabled.
Public propertyLargeImageGets the large image associated with the page.
Public propertyLongDescriptionGets the long description associated with the page.
Public propertyPageTypeGets the type of the page.
Public propertySmallImageGets the small image that is associated with the page.
Public propertyTitleGets the title of the page.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current ModulePageInfo. (Overrides Object..::..Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns a hash code for the page. (Overrides Object..::..GetHashCode()()()().)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

A ModulePageInfo object is used to register an item in the control panel of the connection and for navigation. The ModulePageInfo instance is typically created in the Module..::..Initialize method.

The following example creates a ModulePageInfo instance and registers it by using the IControlPanel..::..RegisterPage method.

internal class DemoModule : Microsoft.Web.Management.Client.Module 
{

    protected override void Initialize(
        IServiceProvider serviceProvider, ModuleInfo moduleInfo) 
    {

        base.Initialize(serviceProvider, moduleInfo);
        Trace.WriteLine(" ClientModuleTypeName : " + 
            moduleInfo.ClientModuleTypeName);
        Trace.WriteLine(" Name : " + moduleInfo.Name);

        // Clear the trace window.
        resetTrace();

        IControlPanel controlPanel = 
            (IControlPanel)GetService(typeof(IControlPanel));
        ModulePageInfo modPgInfo = getModulePage();

        controlPanel.RegisterPage(modPgInfo);
        controlPanel.RegisterPage(
            ControlPanelCategoryInfo.HealthAndDiagnostics, modPgInfo);



...


}


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

ADD
Show:
© 2014 Microsoft