Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
.NET Framework Class Library
IControlPanel Interface

Provides functionality for managing the list of features available in the connection.

Namespace:  Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Visual Basic (Declaration)
Public Interface IControlPanel
Visual Basic (Usage)
Dim instance As IControlPanel
C#
public interface IControlPanel
Visual C++
public interface class IControlPanel
JScript
public interface IControlPanel

The IControlPanel interface exposes all the methods required to interact with the Home page of each connection object in IIS Manager. These methods enable you to perform such actions as registering pages, adding new categories, and getting the list of pages.

The IControlPanel methods and properties are scoped to a single connection. A module should use this interface at initialization to register features for display in the connection's Home page.

The following example registers a feature in the Home page for a connection.

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

    protected override void Initialize(
        IServiceProvider serviceProvider,
        ModuleInfo moduleInfo) {
        base.Initialize(serviceProvider, moduleInfo);
        IControlPanel cp =
            (IControlPanel)GetService(typeof(IControlPanel));
        ModulePageInfo modulePageInfo = new ModulePageInfo(
            this,
            typeof(DemoPage),
            "My Page Title 4",
            "My Page Description 4",
            rLoadImg.loadImgs("rSmall.bmp"),   // small image
            rLoadImg.loadImgs("rLarge.bmp"),  // large image
            "My Page long description 4"     // long description
            );

        cp.RegisterPage(modulePageInfo);

        // Register the Category as
        // Application Development
        string s = 
            ControlPanelCategoryInfo.ApplicationDevelopment;
        cp.RegisterPage(s, modulePageInfo);

        // Register the Area as IIS
        s = ControlPanelCategoryInfo.Iis;
        cp.RegisterPage(s, modulePageInfo);
      //  cp.RegisterHomepage(modulePageInfo);

    }
}
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker