Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ControlPanelCategoryInfo Class

IIS 7.0

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

System..::..Object
  Microsoft.Web.Management.Client..::..ControlPanelCategoryInfo

Namespace:  Microsoft.Web.Management.Client
Assembly:  Microsoft.Web.Management (in Microsoft.Web.Management.dll)
[<SealedAttribute>]
type ControlPanelCategoryInfo =  class end

The ControlPanelCategoryInfo type exposes the following members.

  NameDescription
Public methodControlPanelCategoryInfoInitializes a new instance of the ControlPanelCategoryInfo class.
Top
  NameDescription
Public propertyCategorizationGets the category type for items in Features View of the IIS Manager workspace.
Public propertyDescriptionGets the description of the category.
Public propertyNameGets the name of the category.
Public propertyTextGets the name of the category, as displayed in the user interface.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns the name of the category that is displayed in IIS Manager. (Overrides Object..::..ToString()()()().)
Top
  NameDescription
Public fieldStatic memberApplicationDevelopmentSpecifies the string "ApplicationDevelopment".
Public fieldStatic memberAspNetSpecifies the string "ASP.NET".
Public fieldStatic memberCommonHttpSpecifies the string "CommonHttp".
Public fieldStatic memberHealthAndDiagnosticsSpecifies the string "HealthAndDiagnostics".
Public fieldStatic memberIisSpecifies the string "IIS".
Public fieldStatic memberManagementSpecifies the string "Management".
Public fieldStatic memberPerformanceSpecifies the string "Performance".
Public fieldStatic memberSecuritySpecifies the string "Security".
Public fieldStatic memberServerSpecifies the string "Server".
Top

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

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   



Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.