Microsoft.Web.Management.Cl ...


.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)
Syntax

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
Examples

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   

Inheritance Hierarchy

System..::.Object
  Microsoft.Web.Management.Client..::.ControlPanelCategoryInfo
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