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
Dim instance As ControlPanelCategoryInfo
public sealed class ControlPanelCategoryInfo
public ref class ControlPanelCategoryInfo sealed
public final class ControlPanelCategoryInfo
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
System..::.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.
Reference