Microsoft.Web.Management.Cl ...


.NET Framework Class Library
ModulePageInfo Class

Represents a page of user interface for a module.

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

Visual Basic (Declaration)
<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Public NotInheritable Class ModulePageInfo
Visual Basic (Usage)
Dim instance As ModulePageInfo
C#
[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public sealed class ModulePageInfo
Visual C++
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)]
public ref class ModulePageInfo sealed
JScript
public final class ModulePageInfo
Remarks

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.

Examples

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

C#
    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);



...


}
Inheritance Hierarchy

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

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

Reference

Tags :


Page view tracker