Click to Rate and Give Feedback

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
ControlPanelCategoryInfo Class

Represents a category of items in Features View of the IIS Manager workspace. 

Namespace:  Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Visual Basic (Declaration)
Public NotInheritable Class ControlPanelCategoryInfo
Visual Basic (Usage)
Dim instance As ControlPanelCategoryInfo
C#
public sealed class ControlPanelCategoryInfo
Visual C++
public ref class ControlPanelCategoryInfo sealed
JScript
public final class ControlPanelCategoryInfo

The following example creates and registers an IControlPanel interface in the Performance category.

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

        public DemoModule()
            : base() {
        }

        protected override void Initialize(IServiceProvider serviceProvider, ModuleInfo moduleInfo) {
            base.Initialize(serviceProvider, moduleInfo);
            SH.SP = serviceProvider;
            IControlPanel controlPanel = (IControlPanel)GetService(typeof(IControlPanel));

            ModulePageInfo modulePageInfo = new ModulePageInfo(this,
                  typeof(DemoPage),                       // pageType
                  "Sample ModulePage Info Title",            // Title
                 "Sample ModulePage Description",        // Description
                 rLoadImg.loadImgs("rSmall.bmp"),         // small image
                 rLoadImg.loadImgs("rLarge.bmp"),         // large image
                 "ModulePage Sample long description"     // long description
                 );


            controlPanel.RegisterPage(modulePageInfo);
            // Category
            controlPanel.RegisterPage(
                ControlPanelCategoryInfo.Performance, modulePageInfo);
            // Area
            controlPanel.RegisterPage(ControlPanelCategoryInfo.Iis, 
                modulePageInfo);

        }

    }         // end of DemoModule class   


Object
  Microsoft.Web.Management.Client..::.ControlPanelCategoryInfo
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
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