Represents a page of user interface for a module.
Namespace:
Microsoft.Web.Management.Client
Assembly:
Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Visual Basic (Declaration)
<SecurityPermissionAttribute(SecurityAction.Demand, Flags := SecurityPermissionFlag.UnmanagedCode)> _
Public NotInheritable Class ModulePageInfo
Dim instance As ModulePageInfo
[SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public sealed class ModulePageInfo
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::UnmanagedCode)]
public ref class ModulePageInfo sealed
public final class ModulePageInfo
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);
...
}
System..::.Object
Microsoft.Web.Management.Client..::.ModulePageInfo
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Reference